Homework

nice error handling but you might not want to send the full error message back to the person making the request.