How to set a custom statusText (using context ) for a https response. #2630
Unanswered
tsdineshjai
asked this question in
Q&A
Replies: 2 comments
-
I believe responseText has been considered deprecated in web standards while using fetch (which is what Hono is built of) because it was unreliable. Now we reply on a the |
Beta Was this translation helpful? Give feedback.
0 replies
-
There is no way. So, you have to use return c.body('abc', {
status: 200,
statusText: 'foo'
}) return new Response('abc', {
status: 200,
statusText: 'foo'
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For an API endpoint , I am able to set status for a HTTP request, however while checking on the response, I could find statusText value as empty string.
Is there any way I can provide statusText response using context object.?
Beta Was this translation helpful? Give feedback.
All reactions