After fixing the client to use ``Accept: application/json`` you can return a ``system_error()`` here and for all other error responses.