mirror of
https://github.com/joelwmale/webhook-action.git
synced 2026-06-12 02:36:00 -05:00
[PR #23] [MERGED] Add support for failing check on HTTP error responses #5368
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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.