forked from TrueCloudLab/frostfs-s3-gw
[#118] Correct NotFound status
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
f4cd1e4c38
commit
2479650739
1 changed files with 1 additions and 5 deletions
|
@ -182,9 +182,5 @@ func writeError(w http.ResponseWriter, r *http.Request, log *zap.Logger, msg, ri
|
||||||
zap.String("object_name", obj),
|
zap.String("object_name", obj),
|
||||||
zap.Error(err))
|
zap.Error(err))
|
||||||
|
|
||||||
api.WriteErrorResponse(r.Context(), w, api.Error{
|
api.WriteErrorResponse(r.Context(), w, err, r.URL)
|
||||||
Code: api.GetAPIError(api.ErrInternalError).Code,
|
|
||||||
Description: err.Error(),
|
|
||||||
HTTPStatusCode: http.StatusInternalServerError,
|
|
||||||
}, r.URL)
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue