You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace all query empty results HTTP Status codes to 200 (OK)
Problem Definition
I've seen in several places in the gov module and in other files that the returned status code we are using for an empty search (i.e. query) result are 500 (Internal Server Error), 204 (No Content) or 404 (Not Found).
Proposal
Replace all for status 200 (OK), since it's the standard to handle that situation.
For Admin Use
Not duplicate issue
Appropriate labels applied
Appropriate contributors tagged
Contributor assigned/self-assigned
The text was updated successfully, but these errors were encountered:
All query params that are empty now returns success
(http.StatusOK) instead of mixed http status codes
(http.StatusNoContent/http.StatusBadRequest/
http.StatusInternalServerError)
Closes: #2007
All query params that are empty now returns success
(http.StatusOK) instead of mixed http status codes
(http.StatusNoContent/http.StatusBadRequest/
http.StatusInternalServerError)
Closes: #2007
Summary
Replace all query empty results HTTP Status codes to 200 (OK)
Problem Definition
I've seen in several places in the gov module and in other files that the returned status code we are using for an empty search (i.e. query) result are 500 (Internal Server Error), 204 (No Content) or 404 (Not Found).
Proposal
Replace all for status 200 (OK), since it's the standard to handle that situation.
For Admin Use
The text was updated successfully, but these errors were encountered: