-
Sub-task
-
Resolution: Done
-
Major
-
None
-
None
-
None
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")
This could be improved to be like this:
return errors.Unauthorized("Please provide valid credentials")