clearlydecoded/rest-messenger

See HTTP response status codes that correspond to different types of error messages

Closed this issue · 0 comments

Caller of the rest-messenger should be able to see different response status codes that correspond to different types of error messages. For example, "message type not supported" message should return status of 404 Not Found.

Currently, rest-messenger only returns 500 together with a message.

Done:

  • Messages with unknown type return 404 Not Found
  • Messages that fail validation return 400 Bad Request