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

Function internal_server_error

web/pgadmin/utils/ajax.py:98–105  ·  view source on GitHub ↗

Create a response with HTTP status code 500 - Internal Server Error.

(errormsg='',data=None)

Source from the content-addressed store, hash-verified

96
97
98def internal_server_error(errormsg='',data=None):
99 """Create a response with HTTP status code 500 - Internal Server Error."""
100 return make_json_response(
101 status=500,
102 success=0,
103 errormsg=errormsg,
104 data=data
105 )
106
107
108def forbidden(errmsg=''):

Callers 15

all_exception_handlerFunction · 0.90
change_passwordFunction · 0.90
statisticsMethod · 0.90
connectMethod · 0.90
reload_configurationMethod · 0.90
create_restore_pointMethod · 0.90
change_passwordMethod · 0.90
wal_replayMethod · 0.90
check_pgpassMethod · 0.90
clear_saved_passwordMethod · 0.90
listMethod · 0.90

Calls 1

make_json_responseFunction · 0.85

Tested by

no test coverage detected