Skip to content

Commit

Permalink
fix: error code is wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
noxecane committed Aug 14, 2020
1 parent e01bcff commit e3eb2a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion responses.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func SendError(r *http.Request, w http.ResponseWriter, err APIError) {

w.Header().Set("Content-Type", "application/json; charset=utf-8")
w.Header().Set("X-Content-Type-Options", "nosniff")
w.WriteHeader(http.StatusOK)
w.WriteHeader(err.Code)
_, _ = w.Write(raw)
}

Expand Down

0 comments on commit e3eb2a4

Please sign in to comment.