When I\'m developing my REST API in PHP I\'m working with application/json output, so when I get errors while testing in the browser they look like this:
application/json
It is a php.ini setting called html_errors.
php.ini