adds enough of a middleware to serve errors for the petstore