Error handling attributes Attributes that define error handling in REST services and functions. WSThrowsDefines the list of error codes the REST function may return.WSRetCodeSets the HTTP success status code returned by the REST function.WSErrorHeaderDefines a custom HTTP header to include in an error response.