Added this to returnRequest.

Added this to returnRequest. Removed invalidRequest method, using returnRequest to send back an invalid request.