Skip to content

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

@fedekunze

Description

@fedekunze

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions