Mercurial > prosody-modules
comparison mod_rest/res/openapi.yaml @ 5551:8bfcedd93a72
mod_rest: List all error conditions in OpenAPI spec
These are not handled by datamanager but by util.stanza and util.error,
so they are not represented in the JSON schema file.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 17 Jun 2023 16:26:33 +0200 |
parents | ce6e071d61a0 |
children | 12828e969a60 |
comparison
equal
deleted
inserted
replaced
5550:4fda06be6b08 | 5551:8bfcedd93a72 |
---|---|
1315 - modify | 1315 - modify |
1316 - wait | 1316 - wait |
1317 condition: | 1317 condition: |
1318 description: Specific error condition. | 1318 description: Specific error condition. |
1319 type: string | 1319 type: string |
1320 # enum: [ full list available in RFC 6120 ] | 1320 enum: |
1321 - bad-request | |
1322 - conflict | |
1323 - feature-not-implemented | |
1324 - forbidden | |
1325 - gone | |
1326 - internal-server-error | |
1327 - item-not-found | |
1328 - jid-malformed | |
1329 - not-acceptable | |
1330 - not-allowed | |
1331 - not-authorized | |
1332 - policy-violation | |
1333 - recipient-unavailable | |
1334 - redirect | |
1335 - registration-required | |
1336 - remote-server-not-found | |
1337 - remote-server-timeout | |
1338 - resource-constraint | |
1339 - service-unavailable | |
1340 - subscription-required | |
1341 - undefined-condition | |
1342 - unexpected-request | |
1321 code: | 1343 code: |
1322 description: Legacy numeric error code. Similar to HTTP status codes. | 1344 description: Legacy numeric error code. Similar to HTTP status codes. |
1323 type: integer | 1345 type: integer |
1324 text: | 1346 text: |
1325 description: Description of error intended for human eyes. | 1347 description: Description of error intended for human eyes. |