Mod ndb requests and responses

[edit] HTTP Requests and Responses: mod_ndb

Request Action Result Response Code Notes
Unsupported Method Any 405
Any Any Not connected to cluster 503
Any Any Configuration error -- schema or table not found; index does not exist or is misdefined 500
Any Any Ndb->startTransaction() fails 500
Any Any readTuple(), equal(), getValue(), etc. fails 404
Any Any NdbTransaction::execute() misc. failure 500
GET Read data Success 200 OK
GET Read data No rows returned from scan operation 404
GET If-None-Match Cache hit on ETag 302
GET Read No key columns found in query 404
POST Update a row Success 204
POST Insert a row Success 204
POST Insert a row Duplicate key error 409
PUT Insert a row Success (PUT is not yet implemented) Should be 200 or 201
PUT Insert a row Duplicate key error (PUT is not yet implemented)  ??
DELETE Delete a row Success 204
Subrequest Read Too many operations in one TX 500
Subrequest Any tx has already been aborted 500

[edit] Notes

[edit] POST, PUT, and inserting records

HTTP/1.1 says (in sec. 9.6, regarding PUT):

The fundamental difference between POST and PUT requests is reflected in the different meaning of the Request-URI. The URI in a POST request identifies the resource that will handle the enclosed entity. That resource might be a data-accepting process, a gateway to some other protocol, or a separate entity that accepts annotations. In contrast, the URI in a PUT request identifies the entitiy enclosed with the request – the user agent knows what URI is intended and the server MUST NOT attempt to apply the request to some other resource.

It also says

If the Request-URI refers to an already existing resource, the enclosed entitiy SHOULD be considered as a modified version of the one residing on the origin server.

Here's some of what this means for mod_ndb:

Retrieved from "http://forge.mysql.com/wiki/Mod_ndb_requests_and_responses"

This page has been accessed 2,783 times. This page was last modified 22:17, 9 September 2007.

Find

Browse
MySQLForge
Main Page
Current events
Recent changes
Random page
Help
Edit
Edit this page
Editing help
This page
Discuss this page
Post a comment
Printable version
Context
Page history
What links here
Related changes
My pages
Special pages
New pages
File list
Statistics
Bug reports
More...