Fixed response type JSON on exceptions