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:
In your php.ini you can set three different settings to change how HTML errors are displayed.
I use the following in my development environment:
html_errors = On
error_prepend_string = ""
error_append_string = "
"