Skip to content

Conversation

@nickvergessen
Copy link
Member

Noticed when testing nextcloud/notifications#23

Not found should obviously return with "404" and not with "500"

@mention-bot
Copy link

@nickvergessen, thanks for your PR! By analyzing the annotation information on this pull request, we identified @MorrisJobke, @LukasReschke and @bartv2 to be potential reviewers

@schiessle
Copy link
Member

schiessle commented Sep 22, 2016

looks ok 👍

$txt='Invalid query, please check the syntax. API specifications are here:'
.' http://www.freedesktop.org/wiki/Specifications/open-collaboration-services. DEBUG OUTPUT:'."\n";
OC_API::respond(new OC_OCS_Result(null, API::RESPOND_UNKNOWN_ERROR, $txt), $format);
OC_API::respond(new OC_OCS_Result(null, API::RESPOND_NOT_FOUND, $txt), $format);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really? Should it not be a Method not allowed response? Because the endpoint is not found and not the actual entity.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That OCS code does not exist...

@nickvergessen
Copy link
Member Author

@MorrisJobke can we move this forward?

@MorrisJobke
Copy link
Member

MorrisJobke commented Sep 27, 2016

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants