[#18] Fix typo in error message #23

Merged
alexvanin merged 1 commit from dkirillov/frostfs-http-gw:bugfix/18-fix_typo into master 2023-03-22 11:37:46 +00:00

View file

@ -31,7 +31,7 @@ func FormErrorResponse(message string, err error) (int, string, []zap.Field) {
logFields = append(logFields, zap.String("error_detail", reason))
case client.IsErrObjectNotFound(err) || client.IsErrContainerNotFound(err):
statusCode = fasthttp.StatusNotFound
msg = "NotFound"
msg = "Not Found"
default:
statusCode = fasthttp.StatusBadRequest
msg = fmt.Sprintf("%s: %v", message, err)