StatusCoder is checked by DefaultErrorEncoder. If an error value implements StatusCoder, the StatusCode will be used when encoding the error. By default, StatusInternalServerError (500) is used.
| 214 | // StatusCoder, the StatusCode will be used when encoding the error. By default, |
| 215 | // StatusInternalServerError (500) is used. |
| 216 | type StatusCoder interface { |
| 217 | StatusCode() int |
| 218 | } |
| 219 | |
| 220 | // Headerer is checked by DefaultErrorEncoder. If an error value implements |
| 221 | // Headerer, the provided headers will be applied to the response writer, after |
no outgoing calls
no test coverage detected
searching dependent graphs…