Construct a predefined error response to send to the client.
The ID of this response. This matches the relevant request.
The code of the standard error to send.
Any additional data to add to the error response.
T = The type of the response ID.
See Implementation
Construct a predefined error response to send to the client.