Http return/status codes

Looking through the spec (1.0) it seems there are only a few http return/status codes supported.

Firstly I am curious why this is?

Secondly we need JsonApi support for following status code

  • Bad Request (400)
  • Forbidden (403)
  • Internal server error (500)
  • Conflict (409)
  • UnprocessableEntity (422 )

Would the best way be to create an extension or…?

Thanks

Adam

Can you give us an example where you need to send one of those status codes and the specification prevent you to do so?

I think they are all legal.

Example: https://jsonapi.org/format/#crud-creating-responses-other

Other Responses

A server MAY respond with other HTTP status codes.

A server MAY include error details with error responses.

A server MUST prepare responses, and a client MUST interpret responses, in accordance with HTTP semantics .