Handling bad requests.