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

Function forbidden

web/pgadmin/utils/ajax.py:108–114  ·  view source on GitHub ↗

Create a response with HTTP status code 403 - Forbidden.

(errmsg='')

Source from the content-addressed store, hash-verified

106
107
108def forbidden(errmsg=''):
109 """Create a response with HTTP status code 403 - Forbidden."""
110 return make_json_response(
111 status=403,
112 success=0,
113 errormsg=errmsg
114 )
115
116
117def unauthorized(errormsg=''):

Callers 3

wrappedMethod · 0.90
saveMethod · 0.90

Calls 1

make_json_responseFunction · 0.85

Tested by

no test coverage detected