Skip to content

Commit

Permalink
fixing wrong status code
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmenendez committed Sep 19, 2024
1 parent 72b7652 commit 8e00532
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/errors_definition.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var (
ErrNoOrganizationProvided = Error{Code: 40011, HTTPstatus: http.StatusBadRequest, Err: fmt.Errorf("no organization provided")}
ErrNoOrganizations = Error{Code: 40012, HTTPstatus: http.StatusNotFound, Err: fmt.Errorf("this user has not been assigned to any organization")}
ErrInvalidOrganizationData = Error{Code: 40013, HTTPstatus: http.StatusBadRequest, Err: fmt.Errorf("invalid organization data")}
ErrUserNoVerified = Error{Code: 40014, HTTPstatus: http.StatusBadRequest, Err: fmt.Errorf("user account not verified")}
ErrUserNoVerified = Error{Code: 40014, HTTPstatus: http.StatusUnauthorized, Err: fmt.Errorf("user account not verified")}

ErrMarshalingServerJSONFailed = Error{Code: 50001, HTTPstatus: http.StatusInternalServerError, Err: fmt.Errorf("marshaling (server-side) JSON failed")}
ErrGenericInternalServerError = Error{Code: 50002, HTTPstatus: http.StatusInternalServerError, Err: fmt.Errorf("internal server error")}
Expand Down

0 comments on commit 8e00532

Please sign in to comment.