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

Function unauthorized

web/pgadmin/utils/ajax.py:117–123  ·  view source on GitHub ↗

Create a response with HTTP status code 401 - Unauthorized.

(errormsg='')

Source from the content-addressed store, hash-verified

115
116
117def unauthorized(errormsg=''):
118 """Create a response with HTTP status code 401 - Unauthorized."""
119 return make_json_response(
120 status=401,
121 success=0,
122 errormsg=errormsg
123 )
124
125
126def bad_request(errormsg=''):

Callers 15

handle_csrf_errorFunction · 0.90
connectMethod · 0.90
disconnectMethod · 0.90
change_passwordMethod · 0.90
disconnectMethod · 0.90
load_serversFunction · 0.90
create_import_export_jobFunction · 0.90
verify_credentialsFunction · 0.90
list_filesystemMethod · 0.90
renameMethod · 0.90

Calls 1

make_json_responseFunction · 0.85

Tested by

no test coverage detected