Request Error, Bad parameter

Request

Attempt to query images that can not be divided into smaller pieces by means of a score line, request results as 400 pixel wide images.

https://rximage.nlm.nih.gov/api/rximage/1/rxnav?score=1&resolution=400

Remarks

This query fails as 400 is an invalid resolution.

Example results generated on 15th April 2013.

Reply, JSON format

{
   "replyStatus":{
      "success":false,
      "errorCode":153,
      "errorMsg":"Invalid `resolution` parameter. Valid resolutions are: 120, 300, 600, 800, 1024, full.",
      "imageCount":0,
      "totalImageCount":1198
   },
   "nlmRxImages":[
 
   ]
}

Reply, XML format

<?xml version="1.0"?>
<rxImageAccess xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://rximage.nlm.nih.gov/rxImageAccess.xsd">
  <replyStatus>
    <success>false</success>
    <errorCode>153</errorCode>
    <errorMsg>Invalid `resolution` parameter. Valid resolutions are: 120, 300, 600, 800, 1024, full.</errorMsg>
    <imageCount>0</imageCount>
    <totalImageCount>1198</totalImageCount>
  </replyStatus>
  <nlmRxImages/>
</rxImageAccess>

Page Tools