(key string)
| 25 | } |
| 26 | |
| 27 | func (p Problem) keyExists(key string) bool { |
| 28 | if p == nil { |
| 29 | return false |
| 30 | } |
| 31 | |
| 32 | _, found := p[key] |
| 33 | return found |
| 34 | } |
| 35 | |
| 36 | // DefaultProblemStatusCode is being sent to the client |
| 37 | // when Problem's status is not a valid one. |