super nice! :)
just a hint; you can use http.StatusBadRequest instead 400 and http.StatusInternalServerError for 500, all status has a enum(?) for each one.
http.StatusBadRequest
400
http.StatusInternalServerError
500
enum(?)
Thanks for the comment! I Totally forgot that they are all provided already in the HTTP package. Will update. :D
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
super nice! :)
just a hint; you can use
http.StatusBadRequest
instead400
andhttp.StatusInternalServerError
for500
, all status has aenum(?)
for each one.Thanks for the comment! I Totally forgot that they are all provided already in the HTTP package. Will update. :D