[
https://issues.apache.org/jira/browse/GEODE-2815?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16001584#comment-16001584
]
ASF GitHub Bot commented on GEODE-2815:
---------------------------------------
Github user davebarnes97 commented on the issue:
https://github.com/apache/geode/pull/493
Received a drive-by +1 from mmartell, the filer of the JIRA ticket.
> Incorrect Error Message in REST API docs for {region}/{key} HTTP.GET command
> ----------------------------------------------------------------------------
>
> Key: GEODE-2815
> URL: https://issues.apache.org/jira/browse/GEODE-2815
> Project: Geode
> Issue Type: Bug
> Components: docs
> Affects Versions: 1.1.1, 1.2.0
> Reporter: Michael Martell
> Assignee: Dave Barnes
> Priority: Minor
>
> According to the docs at
> http://gemfire.docs.pivotal.io/geode/rest_apps/get_region_key_data.html error
> responses HTTP 400 and HTTP 404 appear to be very similar,
> # 400 - BAD REQUEST - Returned if the supplied key is not found in the region.
> # 404 - NOT FOUND - Returned if key does not exist for the region.
> The source code at PdxBasedCrudController.java:210 & 213 show that 404
> actually means "Region does not exist", thus the documentation appears to be
> incorrect. Other commands are correct in the docs showing 404 means region
> does not exist.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)