Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrorTitleFor404 = "404 - The webpage you are requesting does not exist on the site" ErrorDescriptionFor404 = `` /* 285-byte string literal not displayed */ ErrorTitleFor500 = "Sorry, there is a problem with the service" ErrorDescriptionFor500 = `` /* 250-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
func SetErrorDetails ¶ added in v1.7.0
func SetErrorDetails(status int, errorDetails *mapper.ErrorDetails)
SetErrorDetails returns errors details for 404 status code or else returns error message details as for a 500 status code.
func SetStatusCode ¶ added in v1.7.0
SetStatusCode returns the response status code
Types ¶
type ClientError ¶ added in v1.7.0
Click to show internal directories.
Click to hide internal directories.