Ensure we set a Content-Type header for internal server errors (Fixes #42).