Don't return plaintext error as JSON content type

Closes #39