Skip to content

Replace all REST query empty result HTTP Status codes to 200 #2007

Closed

Description

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

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions