Skip to content

Commit

Permalink
Adds 401 error schema for "Subscription not found"
Browse files Browse the repository at this point in the history
Enhances error handling by including a specific schema for 401 errors related to subscriptions not found.
  • Loading branch information
lui7henrique committed Oct 16, 2024
1 parent c1f1b6b commit 64c0f57
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/http/routes/generate-referral.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ const responseSchema = {
400: z.object({
message: z.string().describe('Error occurred'),
}),
401: z.object({
message: z.string().describe('Subscription not found'),
}),
409: z.object({
message: z.string().describe('Referral already exists'),
}),
Expand Down

0 comments on commit 64c0f57

Please sign in to comment.