Function getStatusCode

  • Returns the HTTP status code corresponding to the error.

    Parameters

    • error: Error

    Returns number