play-swagger icon indicating copy to clipboard operation
play-swagger copied to clipboard

The server error responses should have different content type then text/html

Open slavaschmidt opened this issue 8 years ago • 1 comments

Usually, REST APIs use application/json or more specific formats. Therefore there is no text/html defined as supported format for error codes. Thus, failing test cases are not delivering correct information about the cause of the failure

slavaschmidt avatar May 06 '16 08:05 slavaschmidt

Seems that the solution would be a custom ErrorHanler like this In this case the fix must be implemented in activator template

slavaschmidt avatar May 07 '16 12:05 slavaschmidt