Title sets the problem's title field. Example: "Your request parameters didn't validate." It is set to status Code text if missing, (e.g., "Not Found" for 404, and so on).
(title string)
| 141 | // It is set to status Code text if missing, |
| 142 | // (e.g., "Not Found" for 404, and so on). |
| 143 | func (p Problem) Title(title string) Problem { |
| 144 | return p.Key("title", title) |
| 145 | } |
| 146 | |
| 147 | // Status sets HTTP error code for problem's status field. |
| 148 | // Example: 404 |
no test coverage detected