added an error response to unknown request types and fixed authentication response