Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Improvement]: Catch Maintenance response #46

Open
niro1987 opened this issue Oct 19, 2024 · 0 comments
Open

[Improvement]: Catch Maintenance response #46

niro1987 opened this issue Oct 19, 2024 · 0 comments
Assignees

Comments

@niro1987
Copy link
Owner

The problem

During maintenance hours, the API returns 503 Service Unavailable.
We could check for this status and raise some Unavailable exception.

Relevant logs

HTTP/1.0 503 Service Unavailable
Server: BigIP
Connection: close
Content-Length: 922

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-type" content="text/html;charset=UTF-8">
    <title>Site Maintenance</title>
    <style type="text/css">
      body { text-align: center; padding: 150px; }
      h1 { font-size: 50px; }
      body { font: 20px Helvetica, sans-serif; color: #333; }
      #article { display: block; text-align: left; width: 650px; margin: 0 auto; }
      a { color: #dc8100; text-decoration: none; }
      a:hover { color: #333; text-decoration: none; }
    </style>
</head>
<body>
    <div id="article">
    <h1>We&rsquo;ll be back soon!</h1>
    <div>
        <p>Sorry for the inconvenience but we&rsquo;re performing some maintenance at the moment. We&rsquo;ll be back online shortly!</p>
        <p>&mdash; SAP Sales Cloud</p>
    </div>
    </div>
</body>
</html>
@niro1987 niro1987 self-assigned this Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant