getJSONErrorResponse

open fun <T> getJSONErrorResponse(): T

Method to get the error response of the request No-any params required

Return

error response of the request formatted as "JSON" or defaultErrorResponse as String if is not a request error