Raised a 404 when code does not exists in db.