You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is not a bug. As per the documentation, if you provide a number to res.send it needs to be a valid staus code number, otherwise it is expecred you will get an error back that it is not a valid status code.
We deprecated that behavior in 4.x and I think it may be removed in 5. Using res.sendStatus is the preferred method to send a status code number. This is in effort to reduce the number of overloads on res.send signature.
We deprecated that behavior in 4.x and I think it may be removed in 5. Using res.sendStatus is the preferred method to send a status code number. This is in effort to reduce the number of overloads on res.send signature. @dougwilson anyways, when we are expecting a stable release of version 5 in express ?
Hi there,
While I was testing my own PR, #5445, I encountered an other issue sending number to
res.send(<number>)
,I get the following error:
Is this intentional, or it is a bug that needs to fixed ?
meanwhile,
res.json(10)
works fine.@mikeal @peters @nick @mcolyer @kavu
The text was updated successfully, but these errors were encountered: