Classifying your return codes
Be explicit about your service behavior and service return codes. REST is great but you need to understand the types of failures you can have. Some may be actual failures. Others may be successful service invocations with a failure to complete business operations because of business rules. Document the meaning, ownership, and handling behavior of your Service return codes. Do not assume your partner teams and calling systems have any expectations or understanding beyond success and not-success . Ask other teams, you call, for their Service return code documentation. Force them to document their expectations. Proposed Return Code Category Types Create response categories. Determine the owner and expected behavior possibilities for each category for services you build. The following is a basic categorization. HTTP Code Category Remediation Owner Remediation Success Everyone Application or none required Business Error Bu...