Skip to content

Commit

Permalink
fix(api): corrected status code for 404 shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
luisnquin committed Jan 2, 2024
1 parent dab1005 commit 9556b31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/api/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func Response(w http.ResponseWriter, statusCode int, v any) {

// Shortcut for bad request response.
func SendNotFound(w http.ResponseWriter, message ...string) {
responseShortcut(w, http.StatusBadRequest, "Not Found", message...)
responseShortcut(w, http.StatusNotFound, "Not Found", message...)
}

// Shortcut for internal server error response.
Expand Down

0 comments on commit 9556b31

Please sign in to comment.