MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / precondition_required

Function precondition_required

web/pgadmin/utils/ajax.py:135–141  ·  view source on GitHub ↗

Create a response with HTTP status code 428 - Precondition Required.

(errormsg='')

Source from the content-addressed store, hash-verified

133
134
135def precondition_required(errormsg=''):
136 """Create a response with HTTP status code 428 - Precondition Required."""
137 return make_json_response(
138 status=428,
139 success=0,
140 errormsg=errormsg
141 )
142
143
144def success_return(message=''):

Callers 15

childrenMethod · 0.90
wrapMethod · 0.90
wrapMethod · 0.90
wrapMethod · 0.90
_validate_rolnameMethod · 0.90
wrapMethod · 0.90
wrappedMethod · 0.90
wrappedMethod · 0.90
wrapMethod · 0.90
wrapMethod · 0.90
wrapMethod · 0.90
wrapMethod · 0.90

Calls 1

make_json_responseFunction · 0.85

Tested by

no test coverage detected