use error.statusCode

error.code is on native errors with string statuses. That's bad for HTTP