Description of problem:
When attempting to use the rest api via a browser (which sends in the header a type of text/html) an error 500 is returned. It would be more appropriate if the error indicated "incorrect mime type" or similar.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Navigate a browser to https://translate.zanata.org/zanata/rest/projects
2. Note the error 500
3. In a console enter
> curl https://translate.zanata.org/zanata/rest/projects
4. Note the successful xml list
On entering the url into a browser, an error "500 Error processing Request" is displayed, and logging shows
> Failed to process REST request: java.lang.IllegalArgumentException: Failure parsing MediaType string: text/html,application/xhtml+xml,application/xml
Something a bit more user friendly.
Verified at 7c59e4ccb46504bee75cc04c1dfd217648e3d4ef
Closing VERIFIED bugs for Zanata server 3.3.2.