Use appropriate HTTP status codes for various exceptions, validation errors and timeouts