Improve error handling for unparseable requests.