Closed mshmsh5000 closed 6 years ago
When handling a GET <key>, if the key isn't in the database, right now we return a 400 Bad Request:
GET <key>
400 Bad Request
return jsonify({'error': 'url not found'}, 400)
This only makes sense in terms of the internal request. The requester would expect to get a 404 here.
404
h/t @rapala61
Closed with #19
When handling a
GET <key>
, if the key isn't in the database, right now we return a400 Bad Request
:This only makes sense in terms of the internal request. The requester would expect to get a
404
here.