DEV Community

Discussion on: Attempting to Learn Go - Building a Downloader Part 05

Collapse
 
rafaacioly profile image
Rafael Acioly

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.

Collapse
 
shindakun profile image
Steve Layton

Thanks for the comment! I Totally forgot that they are all provided already in the HTTP package. Will update. :D