Break my URL shortener!

This is my first time creating something from the back-end, and I’d love to get some feedback on things I can improve. I’ve tried to account for 404s, server errors, etc. so as to make the user experience as intuitive as possible, but I’m sure there must be some things I’ve missed.

I’d love to hear if it woks alright for you, and if you can find any way to break the functionality!

Looks pretty good but make your api return a json response instead. Something like:
{ "short": "www.sort.url", "original" : "www.original.url" }

Ah, nice one. I’ll implement that over the weekend. Thanks!