WHAT Define a custom error handling package which can be used instead of Echo's default. WHY The default HTTP error handling that comes with Echo is a bit verbose and could do with improvements. Example:
return echo.NewHTTPError(http.StatusUnauthorized, "Please provide valid credentials")
|
|