Alejandro Celaya | Blog

Software development, agile methodologies and open source software.

tag Archive — "content-negotiation"

— 2016 —

Creating a content-based Error Handler for Zend Expressive

The other day I was working on a Zend Expressive application I'm currently building. The application includes a REST API among other things, but it also has some endpoints which render HTML. In one of my tests of the REST API I saw that when an error occurs (404, 405 or 500), I was getting an HTML r…


Older postsNewer posts