Better error handling of poorly formatted request