Respect accept in errors

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