failed Response

protected open fun failedResponse(error: String): String

Method to get the payload for a failed response

Return

the payload for a failed response as String

Parameters

error

: the error message to send as response