I know that my methods can return:
- 200 OK - if all goes well;
- 401 Unauthorized - if unauthorized;
- 422 Unprocessable Entity - because I explicitly return it in some of the actions;
- 500 Internal Server Error - in case there's an unexpected exception thrown somewhere.
I'm wondering, if any other status codes are possible if I don't explicitly return them - i.e. if it can happen outside of my actions?
Edit:
It seems like I wasn't clear enough. To make it clearer: I know that I can return any code that I want. The question is, what codes can the framework return without my direct intention (i.e. if something can happen outside of my actions that will return an error code different than 500). Like with 401 Unauthorized - I'm not returning it explicitly, it just 'happens'.