A MissingParameterError represents a missing HTTP parameter. The underlying string is the missing parameter name.
| 199 | // A MissingParameterError represents a missing HTTP parameter. |
| 200 | // The underlying string is the missing parameter name. |
| 201 | type MissingParameterError string |
| 202 | |
| 203 | func (p MissingParameterError) Error() string { return fmt.Sprintf("Missing parameter %q", string(p)) } |
| 204 | func (MissingParameterError) HTTPCode() int { return http.StatusBadRequest } |