def handle_sqlalchemy_operational_error(error): return response( cls._internal_server_error_response( cls.ERROR_CODE_JSON_DECODE), 500)
def ping(): return response({'message': 'Pong!'})
def handle_internal_error(error: InternalServerError): return response( cls._internal_server_error_response( cls.ERROR_CODE_GENERIC_500), 500)
def invalid_method(error: InternalServerError): return response(cls.RESPONSE_BODY_405, 405)
def not_found(error: InternalServerError): return response({}, 404)
def unauthorized(error: InternalServerError): return response(cls.RESPONSE_BODY_401, 401)
def bad_request(error: InternalServerError): return response(cls.RESPONSE_BODY_400, 400)