msp301 / pinbox-server

Self-hosted webmail client greatly inspired by Google Inbox (Backend)
GNU General Public License v3.0
12 stars 3 forks source link

Return meaningful HTTP status codes #5

Closed msp301 closed 5 years ago

msp301 commented 5 years ago

As a client using the pinbox-server API I want to be given an error status if there was a problem fulfilling my request So that I can detect the error and handle it appropriately

Describe the solution you'd like Return HTTP status codes that are meaningful to the response. At the moment everything is coming back as 200 OK.

In error scenarios it might be nice to return a HTTP Problem (https://tools.ietf.org/html/rfc7807)

msp301 commented 5 years ago

This has been resolved as part of issue #3

Can choose whether to enhance this later with HTTP Problem support. Otherwise I believe the immediate issue has been resolved. Closing in this case.