package
2.0.0-20240918112644-caeb5133faf8
Repository: https://github.com/itsoneiota/lambda-handlers.git
Documentation: pkg.go.dev

# Functions

BadRequest is a helper method for creating a service error with an 'BadRequest' code.
Conflict is a helper method for creating a service error with an 'Conflict' code.
Forbidden is a helper method for creating a service error with an 'Forbidden' code.
Found is a helper method for creating a service error with an 'Found' code.
GetDefaultErrorMessage get the default error message.
GetServiceErrorCode gets the service error code based on a given http status.
InternalServerError is a helper method for creating a service error with an 'InternalServerError' code.
MovedPermanently is a helper method for creating a service error with an 'MovedPermanently' code.
NewFromErr returns a new service error built from an existing error.
New creates a new service error with the given code and message.
NotFound is a helper method for creating a service error with an 'NotFound' code.
NotImplemented is a helper method for creating a service error with an 'NotImplemented' code.
RequestTimeout is a helper method for creating a service error with an 'RequestTimeout' code.
Unauthorized is a helper method for creating a service error with an 'Unauthorized' code.
UnprocessableEntity is a helper method for creating a service error with an 'UnprocessableEntity' code.

# Constants

Error codes.
Error codes.
Error codes.
Error codes.
Error codes.
Error codes.
Error codes.
Error codes.
Error codes.
Error codes.
Error codes.
Error codes.

# Variables

StatusCodes mapped to the error codes.

# Structs

Error holds the error contents of the service error.
ServiceError - represents the service error.