write Failed Response
Writes a failed response to the client. This is all requests that aren't the ok response, even ones where technically it's correct - this is because the client always makes a new connection to re-request the login, nothing is kept open over long periods of time.
Parameters
response
the response to write to the client - this cannot be the successful response or the proof of work response, as those are handled in a special manner.