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

...2).