handle the 404 HTTP error Args: error: the flask error Returns: 404 JSON error
(error)
| 172 | |
| 173 | @app.errorhandler(404) |
| 174 | def 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) |
nothing calls this directly
no test coverage detected