HTTPStatusCoder is an interface that errors can implement to produce status code for HTTP response
| 37 | |
| 38 | // HTTPStatusCoder is an interface that errors can implement to produce status code for HTTP response |
| 39 | type HTTPStatusCoder interface { |
| 40 | StatusCode() int |
| 41 | } |
| 42 | |
| 43 | // StatusCode returns status code from err if it implements HTTPStatusCoder interface. |
| 44 | // If err does not implement the interface, it returns 0. |
no outgoing calls
no test coverage detected
searching dependent graphs…