mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #3458] [feature]: Add statusText next to error code instead of the default one #1167
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#1167
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Originally created by @Batimius on GitHub (Oct 16, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3458
Originally assigned to: @mazkaaa on GitHub.
Is there an existing issue for this?
Summary
When making a request, the status text it displays for your request status is the default one. For instance, a 400-status code will say "400 • Bad Request" and nothing more. Although this is good, it would be nice if instead of defaulting to the default one, it only uses the default text when no statusText is present. For instance, if I return a status text of "No cookie" along with my 400-statuts response, it would be much nicer for it to display "400 • No cookie" instead of "400 • Bad response." Right now, I am using different status text for each "rejection," so the generic message is very unhelpful.
Why should this be worked on?
It helps with debugging and overall a better understanding of every request. If it is possible for this to be implemented, then it should be. There isn't really much of a reason on why it shouldn't.
@mazkaaa commented on GitHub (Oct 19, 2023):
Hi, I'd like to work on this issue! could you please provide the screenshot of the requested feature? @Batimius
@Batimius commented on GitHub (Oct 19, 2023):
@mazkaaa Sure thing! Below is an example of what I'm talking about.
(Test request using Thunder Client in VS Code)
(Same request using Hoppscotch)
As you can see, in Thunder Client, it gives me the response status plus the response text, meanwhile in Hoppscotch, it only gives me the response status and a generic response.
If this was to be implemented, the Hoppscotch response could look something like this:
I just think that it would make debugging x100 times easier if the response status was also attached to the response code, since many applications (including mine) rely on status messages for a better description of the problem.
@liyasthomas commented on GitHub (Oct 20, 2023):
Assigning this to you @mazkaaa.
@mazkaaa commented on GitHub (Oct 20, 2023):
Thank you!
@mazkaaa commented on GitHub (Oct 20, 2023):
Thank you! working on it🚀
@mazkaaa commented on GitHub (Oct 24, 2023):
@liyasthomas is this allowed? https://github.com/hoppscotch/hoppscotch/pull/3466 i mean I working on it first... and I'm asking to this issue to be assigned earlier...
@mazkaaa commented on GitHub (Oct 24, 2023):
@liyasthomas commented on GitHub (Dec 20, 2023):
Thanks for your patience and valuable feedback. This feature has been implemented in the latest release.
Closing this ticket as this feature is now available in the recent version. Feel free to reach out if you encounter any further concerns.