Confirmed users
241
edits
No edit summary |
|||
Line 355: | Line 355: | ||
===Error handling=== | ===Error handling=== | ||
The REST API returns various different | The REST API returns various different flavors of error depending on the underlying implementation, whereas the RPC API simply returns an error code and description. | ||
REST also makes use of http status codes to designate types of errors as well. RPC normally returns the same status code even in an error condition and the client checks the payload to see if an error occurred. | |||
==Scratchpad== | ==Scratchpad== | ||
* Need to check if there are differences in include_fields/exclude_fields handling -- see {{bug|540818}} | * Need to check if there are differences in include_fields/exclude_fields handling -- see {{bug|540818}} |