def retrieve_book(book_id): """Retrieve a book using its book id""" book = Book.get_by_id(book_id) if not book: return jsonify({'message': 'The requested book was not found'}), 404 if request.method == 'GET': return jsonify(book.serialize()), 200