This article describes the syntax of error responses in Message Service (MNS). If an error occurs when you access MNS, MNS returns the HTTP status code 3xx, 4xx, or 5xx. MNS also returns a message body in the text or XML format.

Example of the message body in an error response:

    <? xml version="1.0"  encoding="UTF-8"? >
    <Error xmlns="">
        <Message>Authorization header is invalid or missing. </Message>

The message body of an error response includes the following parameters:

  • Code: the error code.
  • Message: the error message.
  • RequestId: the unique ID that is used to identify the request.

    If you submit a ticket for technical support, you must provide the request ID.

  • HostId: the endpoint that is used to access MNS. The endpoint varies based on different regions.

For more information about operation-specific errors, see the corresponding API operation.