teamdigitale / openapi

OpenAPI Schema and Resources
https://teamdigitale.github.io/openapi/
1 stars 4 forks source link

HTTP_STATUS_CODE: 204 and 500 #14

Open vlauciani opened 4 years ago

vlauciani commented 4 years ago

hi all

In our (INGV) internal definitions, we've defined 500InternalServerError and 204NoContent responses:

Could be a good idea to add It here?

ioggstream commented 4 years ago

Hi @vlauciani

you can check here the actual ideas on status codes. https://forum.italia.it/t/quali-status-code-indicare-nelle-specifiche-dellapi/6474

imho 500 should generally map to default but we could add it.

204 is a successful status code so I expect providers to have different descriptions for each apis. for this reason I won't add it.