Can I support a custom status code or code returned by the interface #2501

Closed
opened 2026-02-28 02:56:55 -05:00 by deekerman · 4 comments
Owner

Originally created by @xiangshen123 on GitHub (Aug 21, 2023).

⚠️ Please verify that this feature request has NOT been suggested before.

  • I checked and didn't find similar feature request

🏷️ Feature Request Type

API

🔖 Feature description

Can I support a custom status code or code returned by the interface

✔️ Solution

Can I support a custom status code or code returned by the interface

Alternatives

No response

📝 Additional Context

No response

Originally created by @xiangshen123 on GitHub (Aug 21, 2023). ### ⚠️ Please verify that this feature request has NOT been suggested before. - [X] I checked and didn't find similar feature request ### 🏷️ Feature Request Type API ### 🔖 Feature description Can I support a custom status code or code returned by the interface ### ✔️ Solution Can I support a custom status code or code returned by the interface ### ❓ Alternatives _No response_ ### 📝 Additional Context _No response_
deekerman 2026-02-28 02:56:55 -05:00
Author
Owner

@CommanderStorm commented on GitHub (Aug 21, 2023):

What do you mean by

Can I support a custom status code or code returned by the interface

Please remember that writing good issues is paramount to the thing you want getting done.

I think you wanted to choose the help-template.

@CommanderStorm commented on GitHub (Aug 21, 2023): What do you mean by > Can I support a custom status code or code returned by the interface Please remember that writing good issues is paramount to the thing you want getting done. I think you wanted to choose the `help`-template.
Author
Owner

@xiangshen123 commented on GitHub (Aug 22, 2023):

List as I visit a URL,He returns the following values,However, our service only supports returning status codes of 1-999
image

Can I customize the return value for the URL shown in the figure?

@xiangshen123 commented on GitHub (Aug 22, 2023): List as I visit a URL,He returns the following values,However, our service only supports returning status codes of 1-999 ![image](https://github.com/louislam/uptime-kuma/assets/124766156/338e74f9-8e0a-47d7-8462-3002f2b7386b) Can I customize the return value for the URL shown in the figure?
Author
Owner

@CommanderStorm commented on GitHub (Aug 22, 2023):

"0000" would not a valid status code according to RFC 9110 if you are refering to the actual status code.
=> http status code 0 is also commonly used for aborted requests by browsers

However, your screenshot does NOT show an HTTP status code, instead you are showing json. If this is indeed valid json, please consider using the json-query monitor instead. If this is not valid json, please consider using the keyword monitor instead.

Can I customize the return value for the URL shown in the figure?

I am unshure if you can customise the returned content of the url you are monitoring. (something might have been lost in translation, I don't understand what you mean)

@CommanderStorm commented on GitHub (Aug 22, 2023): "0000" would [not a valid status code according to RFC 9110](https://httpwg.org/specs/rfc9110.html#status.code.extensibility) if you are refering to the actual status code. => http status code 0 is also commonly used for aborted requests by browsers However, your screenshot does NOT show an HTTP status code, instead you are showing `json`. If this is indeed valid `json`, please consider using the `json-query` monitor instead. If this is not valid `json`, please consider using the `keyword` monitor instead. > Can I customize the return value for the URL shown in the figure? I am unshure if you can customise the returned content of the url you are monitoring. (something might have been lost in translation, I don't understand what you mean)
Author
Owner

@github-actions[bot] commented on GitHub (Feb 14, 2024):

We are clearing up our old help-issues and your issue has been open for 60 days with no activity.
If no comment is made and the stale label is not removed, this issue will be closed in 7 days.

@github-actions[bot] commented on GitHub (Feb 14, 2024): We are clearing up our old `help`-issues and your issue has been open for 60 days with no activity. If no comment is made and the stale label is not removed, this issue will be closed in 7 days.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/uptime-kuma#2501
No description provided.