MCPcopy Index your code
hub / github.com/pgadmin-org/pgadmin4 / bad_request

Function bad_request

web/pgadmin/utils/ajax.py:126–132  ·  view source on GitHub ↗

Create a response with HTTP status code 400 - Bad Request.

(errormsg='')

Source from the content-addressed store, hash-verified

124
125
126def bad_request(errormsg=''):
127 """Create a response with HTTP status code 400 - Bad Request."""
128 return make_json_response(
129 status=400,
130 success=0,
131 errormsg=errormsg
132 )
133
134
135def precondition_required(errormsg=''):

Callers 15

change_passwordFunction · 0.90
forgot_passwordFunction · 0.90
updateMethod · 0.90
createMethod · 0.90
connectMethod · 0.90
disconnectMethod · 0.90
change_passwordMethod · 0.90
get_sqlMethod · 0.90
indexFunction · 0.90
indexFunction · 0.90
indexFunction · 0.90
indexFunction · 0.90

Calls 1

make_json_responseFunction · 0.85

Tested by

no test coverage detected