Skip to main content
4 events
when toggle format what by license comment
Jul 31, 2016 at 16:05 comment added gorav Thanks custom response setup and looks good. Makes sense as this gives the flexibility to handle as desired and return the desired error code.
Jul 31, 2016 at 16:04 vote accept gorav
Jul 31, 2016 at 5:49 comment added sfdcfox For custom REST Apex, I also recommend setting the status to a non-200 value. This makes it easier to find in clients that log those status values. For example, browsers will highlight 400 errors in the Network log area, and most REST clients will display such errors differently. RestContext.response.statusCode = 400;, for example.
Jul 31, 2016 at 2:16 history answered Eric CC BY-SA 3.0