Fix JsDoc, throw errors on non 2xx response codes