Documentation ¶
Index ¶
Constants ¶
View Source
const ErrBadRequestCode = "PIT_400"
ErrBadRequestCode is a string code representing a bad request related error
View Source
const ErrClientClosedRequest = "PIT_499"
ErrClientClosedRequest is a string code representing the client closed request error
View Source
const ErrInternalCode = "PIT_500"
ErrInternalCode is a string code representing an internal Pitaya error
View Source
const ErrNotFoundCode = "PIT_404"
ErrNotFoundCode is a string code representing a not found related error
View Source
const ErrUnknownCode = "PIT_000"
ErrUnknownCode is a string code representing an unknown error This will be used when no error code is sent by the handler
Variables ¶
This section is empty.
Functions ¶
func CodeFromError ¶
CodeFromError returns the code of error. If error is nil, return empty string. If error is not a pitaya error, returns unkown code
Types ¶
Click to show internal directories.
Click to hide internal directories.