Rest API - HTTP Status Codes
Find the bug in this Flask route that should return 404 if a book is not found:
@app.route('/books/')
def get_book(id):
books = {1: '1984', 2: 'Brave New World'}
if id not in books:
return 'Book not found', 404
return books[id], 200 