(header, host, url string)
| 54 | } |
| 55 | |
| 56 | func ErrorAuthHeaderMissing(header, host, url string) error { |
| 57 | return errors.WithStack(&errors.Error{ |
| 58 | Kind: ErrHeaderMissing, |
| 59 | Message: fmt.Sprintf("missing %s header", header), |
| 60 | Metadata: map[string]string{ |
| 61 | "host": host, |
| 62 | "url": url, |
| 63 | }, |
| 64 | }) |
| 65 | } |
| 66 | |
| 67 | func ErrorHeaderMalformed(header string) error { |
| 68 | return errors.WithStack(&errors.Error{ |
no test coverage detected