# Functions
New returns an error that contains an error code and message derived from the given category, reason.
NewBadRequest creates a HttpError with the given error and error code 400.
NewBadRequestMissingParameter returns a 400 HttpError as a required parameter is missing in the HTTP request.
NewBadRequestString returns a HttpError with the supplied message and error code 400.
NewBadRequestUnwantedParameter returns a 400 HttpError as a unnecessary parameter is present in the HTTP request.
NewMethodNotAllowed returns an appropriate error in the case that an HTTP client uses an invalid method (i.e.
Wrap returns an error that contains the given error and an error code derived from the given category, reason and the error.
# Constants
7XXX.
AuthenticationFailure occurs when the client is unable to obtain an authentication token for the request.
Code 13XX.
0x01.
0x02.
1XXX.
11XXX.
ClientHTTPError wraps a net/http error.
9XXX.
CTClientConstructionFailed occurs when the construction of a new github.com/google/certificate-transparency client fails.
10XXX.
X002.
6XXX.
21XX.
24XX.
InsertionFailed occurs when a SQL insert query failes to complete.
3XXX.
52XX.
53XX.
InvalidStatus occurs when the OCSP signing requests includes an invalid value for the certificate status.
IOError wraps an io/ioutil error.
81XX.
JSONError wraps an encoding/json error.
23XX.
Code 14XX.
51XX.
None is a non-specified error.
22XX.
8XXX.
X003.
5XXX.
PrecertInvalidPoison occurs when a precert is passed to SignFromPrecert and has a invalid CT poison extension value or the extension is not critical.
PrecertMissingPoison occurs when a precert is passed to SignFromPrecert and is missing the CT poison extension.
PrecertSubmissionFailed occurs when submitting a precertificate to a log server fails.
2XXX.
X001.
RecordNotFound occurs when a SQL query targeting on one unique record failes to update the specified row in the table.
4XXX.
Code 11XX.
ServerRequestFailed covers any other failures from the API client.
0XXX.
Unavailable indicates that a private key mechanism (such as PKCS #11) was requested but support for that mechanism is not available.
X000.
54XX.
55xx.
Code 12XX.