Error handling attributes Attributes that define error handling in REST services and functions. WSThrowsDefines a list of errors that may be encountered accessing a REST resource.WSRetCodeDefines the HTTP success status sent in the REST response. WSErrorHeaderDefines custom headers in the error response of web service functions.