A JSON error handler

Report a typo

Create an error handler function that handles a 404 error and returns a jsonifyed response with the msg field containing text Something was not found and code 404.

Tip: Consider using the jsonify method to make sure your function returns proper json response.

Write a program in Python 3
from flask import Flask, jsonify
app = Flask(__name__)
___

Create a free account to access the full topic