def service_unavailable(error): logger.error(str(error)) error_object = http.HttpHandler(503, error) return error_object.return_json_http(), error_object.code
def not_implemented_error(error): logger.error(str(error)) error_object = http.HttpHandler(501, error) return error_object.return_json_http(), error_object.code
def not_found_error(error): logger.error(str(error)) error_object = http.HttpHandler(404, error) return error_object.return_json_http(), error_object.code
def internal_server_error(error): logger.error(str(error)) error_object = http.HttpHandler(500, error) return error_object.return_json_http(), error_object.code
def bad_request_error(error): logger.error(str(error)) error_object = http.HttpHandler(400, error) return error_object.return_json_http(), error_object.code