26e152b Add support for failing check on HTTP error responses
📊 Changes
1 file changed (+3 additions, -0 deletions)
View changed files
📝src/main.ts (+3 -0)
📄 Description
This PR fixes#22 by throwing an error when a server responds with a failing status code.
According to HTTP response status codes on MDN, 400 to 499 are client errors and 500 to 599 are server errors. In this PR, the status check is failed when such an HTTP status is responded with.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/joelwmale/webhook-action/pull/23
**Author:** [@AnandChowdhary](https://github.com/AnandChowdhary)
**Created:** 8/28/2020
**Status:** ✅ Merged
**Merged:** 8/29/2020
**Merged by:** [@joelwmale](https://github.com/joelwmale)
**Base:** `develop` ← **Head:** `patch-1`
---
### 📝 Commits (1)
- [`26e152b`](https://github.com/joelwmale/webhook-action/commit/26e152b6db371b20039939396982efc13b2348c5) Add support for failing check on HTTP error responses
### 📊 Changes
**1 file changed** (+3 additions, -0 deletions)
<details>
<summary>View changed files</summary>
📝 `src/main.ts` (+3 -0)
</details>
### 📄 Description
This PR fixes #22 by throwing an error when a server responds with a failing status code.
According to [HTTP response status codes on MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status), `400` to `499` are client errors and `500` to `599` are server errors. In this PR, the status check is failed when such an HTTP status is responded with.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/joelwmale/webhook-action/pull/23
Author: @AnandChowdhary
Created: 8/28/2020
Status: ✅ Merged
Merged: 8/29/2020
Merged by: @joelwmale
Base:
develop← Head:patch-1📝 Commits (1)
26e152bAdd support for failing check on HTTP error responses📊 Changes
1 file changed (+3 additions, -0 deletions)
View changed files
📝
src/main.ts(+3 -0)📄 Description
This PR fixes #22 by throwing an error when a server responds with a failing status code.
According to HTTP response status codes on MDN,
400to499are client errors and500to599are server errors. In this PR, the status check is failed when such an HTTP status is responded with.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.