separate profile model from account model
This commit is contained in:
parent
f729160209
commit
c3271d7dcf
15 changed files with 152 additions and 83 deletions
|
|
@ -70,9 +70,12 @@ func ErrRender(err error) render.Renderer {
|
|||
}
|
||||
|
||||
var (
|
||||
// ErrBadRequest return status 400 Bad Request for malformed request body.
|
||||
// ErrBadRequest returns status 400 Bad Request for malformed request body.
|
||||
ErrBadRequest = &ErrResponse{HTTPStatusCode: http.StatusBadRequest, StatusText: http.StatusText(http.StatusBadRequest)}
|
||||
|
||||
// ErrUnauthorized returns 401 Unauthorized.
|
||||
ErrUnauthorized = &ErrResponse{HTTPStatusCode: http.StatusUnauthorized, StatusText: http.StatusText(http.StatusUnauthorized)}
|
||||
|
||||
// ErrNotFound returns status 404 Not Found for invalid resource request.
|
||||
ErrNotFound = &ErrResponse{HTTPStatusCode: http.StatusNotFound, StatusText: http.StatusText(http.StatusNotFound)}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue