Set Content-Type on error response.