This topic describes the HTTP status codes that EdgeRoutine (ER) may return and the exception that may occur when you use ER.

HTTP status codes

ER may return the 598 or 599 HTTP status code based on the cause of the error. The following table describes the HTTP status codes.

HTTP status code Description
598
  • ER cannot process the request due to traffic throttling. The number of concurrent requests is large or the servers are occupied.
  • ER is disallowed to process the request due to certain exceptions. Possible causes include:
    • The virtual machine where ER is deployed encounters the out of memory (OOM) error several times. If the OOM error appears two times within five minutes, ER is disallowed to process requests.
    • Other causes.
599
  • An unknown error occurs when ER requests the context. ER is disallowed to process the request.
  • An unknown error occurs when ER initializes the context. ER is disallowed to process the request.

Exceptions

This error occurs because ER asynchronously generates a response when it responds to a request. ER is interrupted when it responds to a request. ER transmits data in pass-through mode. When the preceding exception occurs, the client receives only parts of the response. The rest of the response is interrupted. Possible causes and solutions include:
  • The code submitted to ER contains bugs that cause JavaScript exceptions when ER responds to requests.
  • The amount of resources allocated to your Content Delivery Network (CDN) service is insufficient. You can submit a ticket to contact your sales manager for a quota increase.
Note If ER is frequently interrupted when it responds to requests, check whether the code submitted to ER contains bugs. If the code is bug free, contact your sales manager for a quota increase.