Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StatusCode ¶
StatusCode is a callback function that allows you to extract a status code from an error, or returns 500 as a default
func UnwrapLogData ¶
UnwrapLogData recursively unwraps logData from an error
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error is a common error for HTTP APIs to return associated status code and logdata from API calls made
func (*Error) Code ¶
Code returns the statusCode returned by Cantabular. Hopefull can be renamed to StatusCodea some point but this is how it is named elsewhere across ONS services and is more useful being consistent
Click to show internal directories.
Click to hide internal directories.