play-swagger
play-swagger copied to clipboard
The server error responses should have different content type then text/html
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
Seems that the solution would be a custom ErrorHanler like this In this case the fix must be implemented in activator template