handle the 403 HTTP error Args: error: the flask error Returns: 403 JSON error
(error)
| 82 | |
| 83 | @app.errorhandler(403) |
| 84 | def error_403(error): |
| 85 | """ |
| 86 | handle the 403 HTTP error |
| 87 | |
| 88 | Args: |
| 89 | error: the flask error |
| 90 | |
| 91 | Returns: |
| 92 | 403 JSON error |
| 93 | """ |
| 94 | return jsonify(structure(status="error", msg=error.description)), 403 |
| 95 | |
| 96 | |
| 97 | @app.errorhandler(404) |
nothing calls this directly
no test coverage detected