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
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.