New error response codes in platform 0.6.0
We used 422 (unprocessable entity) all over the place. With 0.6.0 I made the auth related error codes more meaningful:
- When you're not logged in and login is required the response will now be 401 (unauthenticated).
- If you are logged in and asking for an action that is not allowed you will receive a 403 (forbidden)
This affects the following endpoints: 401: 1/users/:id (PUT) 1/session/:id (DESTROY) 1/cert (POST, GET - deprecated ) 1/smtp_cert (POST) 1/service (GET) 1/messages (INDEX) 1/messages/:id (PUT) 1/configs (INDEX) 1/configs/:id (GET) (not implemented yet)
403: 1/smtp_cert (POST) (if email is not available for logged in user)
(from redmine: created on 2014-09-17)