404 and close responses to invalid requests.