A newer version of this documentation is available.

View Latest

Unsupported HTTP method

  • concept
    +

    For a REST method type that is not supported:

    Request:
    $ curl -v http://localhost:8093/query/service -X PUT \
    -d "statement=SELECT text FROM tweets LIMIT 1"
    Response:
         < HTTP/1.1 405 Method Not Allowed
         {
         "requestID": "6e0143ed-4657-4c9d-a184-703c930c7401",
    
         "errors": [
         {
         "code": <int>,
         "msg": "PUT is not supported"
         }],
         "status": "fatal",
         "metrics": {
         "elapsedTime": "134.7944us",
         "executionTime": "130.5518us",
         "resultCount": 0,
         "resultSize": 0,
         "mutationCount": 0,
         "errorCount": 1,
         "warningCount": 0
         }
         }
         $