Documentation
¶
Overview ¶
Package apigateway provides a standard serialization format to wrap API Gateway responses that translate into specific end-user errors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { Code int `json:"code"` Err string `json:"err"` Message string `json:"message"` Context map[string]interface{} `json:"context,omitempty"` }
Error represents an error to return in response to an API Gateway request
func NewErrorResponse ¶
NewErrorResponse returns a response that satisfies the regular expression used to determine integration mappings via the API Gateway
Click to show internal directories.
Click to hide internal directories.