JSON error response handling.