add err.status instead of checking for exact error message

it's done for consistency reasons
updating eslint config