Respect accept in errors

This returns makes sure both 404 response and the root route return an with an acceptable content-type for the client.