Open tshemsedinov opened 4 months ago
Just as an idea, needs reworking to be more matched with code style https://github.com/diia-open-source/be-pkg-utils/pull/26
@vird Node.js have status codes collection: https://nodejs.org/api/http.html#httpstatus_codes
I'm not sure we can use that here. Didn't investigate if any other packages are trying to use this one at frontend
be-* package names is backend @vird
Agree But with webpack any package which was previously named "for backend" can be used on frontend We have no information about non-released parts of diia
number | undefined
is not ok here, why should we pass undefined here?code >= 100 && code < 600
in if statement returns boolean itself, so we do not need to use return true/return false