[PR #23] [MERGED] Add support for failing check on HTTP error responses #3404

Closed
opened 2026-05-13 20:40:19 -05:00 by GiteaMirror · 0 comments
Owner

📋 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: developHead: patch-1


📝 Commits (1)

  • 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>
GiteaMirror added the pull-request label 2026-05-13 20:40:19 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/webhook-action#3404