Skip to content

Commit

Permalink
fix: return 404, 405, 500 at DeleteResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
kavos113 committed Oct 14, 2024
1 parent dc54c0d commit 06cee26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handler/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (h Handler) DeleteResponse(ctx echo.Context, responseID openapi.ResponseIDI
err = r.DeleteResponse(ctx, responseID, userID)
if err != nil {
ctx.Logger().Errorf("failed to delete response: %+v", err)
return echo.NewHTTPError(http.StatusInternalServerError, fmt.Errorf("failed to delete response: %w", err))
return err
}

return ctx.NoContent(200)
Expand Down

0 comments on commit 06cee26

Please sign in to comment.