Documentation
¶
Overview ¶
Package apierr answers, in one place, which HTTP status a failed job deserves.
It exists so that thirty-odd handlers do not each decide for themselves. They used to, by matching on the words a provider happened to use, and the answers drifted: one endpoint checked for "does not exist" while its neighbour checked "not found", a third checked neither and answered 500 where its own specification promised 404, and two checked for a phrase the code they call can never produce.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsMissing ¶
IsMissing reports whether a failed job means the thing the endpoint addresses is not there as far as osapi is concerned: the host has no such item, the item is there but osapi does not manage it, or the program the operation needs is not installed. Reason tells them apart in the answer, so a program does not read the message.
Types ¶
This section is empty.