Add error message for bad requests.