Skip to content

Commit

Permalink
Assorted cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
bcspragu committed Sep 18, 2023
1 parent 2ac0db4 commit 390251c
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion openapi/pacta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,30 @@ components:
application/json:
schema:
$ref: '#/components/schemas/Error'
BadRequest:
description: the request contained one or more invalid parameters, or the request is otherwise invalid
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
NotFound:
description: the requested entity doesn't exist, or the user doesn't have access
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Conflict:
description: the request couldn't be completed because it conflicts with the current state of the entity
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
TooManyRequests:
description: the given caller has exceeded their rate limit
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
schemas:
Language:
type: string
Expand Down Expand Up @@ -548,4 +572,4 @@ components:
description: |
An enum-like type indicating a more specific type of error.
TODO: Add an example
An example might be getting a 401 Unauthorized because you're logged in with multiple emails and haven't selected one, the error_id could be 'multiple_emails'.

0 comments on commit 390251c

Please sign in to comment.