FromErrorStatusCode returns the associated WTF code for an HTTP status code.
(code int)
| 160 | |
| 161 | // FromErrorStatusCode returns the associated WTF code for an HTTP status code. |
| 162 | func FromErrorStatusCode(code int) string { |
| 163 | for k, v := range codes { |
| 164 | if v == code { |
| 165 | return k |
| 166 | } |
| 167 | } |
| 168 | return wtf.EINTERNAL |
| 169 | } |
no outgoing calls
no test coverage detected