Error Responses

 

Updated: July 12, 2016

An error in an operation will return the appropriate HTTP error code and a response body containing an error code and a descriptive message. Messages will be localized per the Accept-Language header specified in the request.

Response Body

{
  "error":
   {  
      "code":"AlertNotFound", 
      "message":"The alert goo could not be found"
   }
}

Error codes

HTTP Status Code

Error Code

Description

401 Unauthorized

Subscription not registered

The subscription is not registered to use Microsoft.Security

404 Not Found

Policy name error

The policy name is invalid

404 Bad Request

Bad parameters

The given parameters are not valid

See Also

Security Resource Provider REST API Reference