Error prepares and publishes error response from a handler. A response error should be set containing an error code and description. Optionally, data can be set as response payload.
(code, description string, data []byte, opts ...RespondOpt)
| 49 | // A response error should be set containing an error code and description. |
| 50 | // Optionally, data can be set as response payload. |
| 51 | Error(code, description string, data []byte, opts ...RespondOpt) error |
| 52 | |
| 53 | // Data returns request data. |
| 54 | Data() []byte |
no outgoing calls