Proper 500 and 404 for short url resolver