Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ValidationErrors = func(w http.ResponseWriter, apiError []types.ApiError) { writeValidationError(w, apiError) } RequestErrorHandler = func(w http.ResponseWriter, err error) { writeError(w, err.Error(), http.StatusBadRequest) } InternalErrorHandler = func(w http.ResponseWriter) { writeError(w, "An Unexpected Error Occured", http.StatusInternalServerError) } writeError(w, "Unauthorized", http.StatusUnauthorized) } UserRegistrationError = func(w http.ResponseWriter) { writeError(w, "Please complete the registration process.", http.StatusNotFound) } )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.