MCPcopy Index your code
hub / github.com/OWASP/Python-Honeypot / error_404

Function error_404

api/server.py:174–187  ·  view source on GitHub ↗

handle the 404 HTTP error Args: error: the flask error Returns: 404 JSON error

(error)

Source from the content-addressed store, hash-verified

172
173@app.errorhandler(404)
174def error_404(error):
175 """
176 handle the 404 HTTP error
177
178 Args:
179 error: the flask error
180
181 Returns:
182 404 JSON error
183 """
184 del error
185 return jsonify(
186 msg_structure(status="error", msg="file/path not found!")
187 ), 404
188
189
190@app.errorhandler(500)

Callers

nothing calls this directly

Calls 1

msg_structureFunction · 0.90

Tested by

no test coverage detected