re: Attempting to Learn Go - Building a Downloader Part 05 VIEW POST

FULL DISCUSSION
 

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.

 

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

code of conduct - report abuse