<commit_before>"use strict";

module.exports.Promise = Promise;
module.exports.Resource = require('./lib/resource');
module.exports.Response = require('./lib/response');
module.exports.Road = require('./lib/road');

module.exports.middleware = require('./lib/middleware');

module.exports.HttpError = function HttpError(message, code) {
	this.message = message;
	this.code = code;
	Error.captureStackTrace(this, HttpError);
};

module.exports.HttpError.invalid_request = 400;
module.exports.HttpError.unauthorized = 401;
module.exports.HttpError.not_found = 404;

require('util').inherits(module.exports.HttpError, Error);<commit_msg>fix default errors for non-v8 browsers<commit_after>"use strict";

module.exports.Promise = Promise;
module.exports.Resource = require('./lib/resource');
module.exports.Response = require('./lib/response');
module.exports.Road = require('./lib/road');

module.exports.middleware = require('./lib/middleware');

module.exports.HttpError = function HttpError(message, code) {
	this.message = message;
	this.code = code;

	if (Error.captureStackTrace) {
		Error.captureStackTrace(this, HttpError);
	} else {
		// FF doesn't support captureStackTrace
		this.stack = (new Error()).stack;
	}
};

module.exports.HttpError.invalid_request = 400;
module.exports.HttpError.unauthorized = 401;
module.exports.HttpError.not_found = 404;

require('util').inherits(module.exports.HttpError, Error);
{'fraction_non_alphanumeric': 0.15444287729196052, 'fraction_numerical': 0.013399153737658674, 'mean_word_length': 5.6, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2570631', 'n_tokens_mistral': 443, 'n_tokens_neox': 415, 'n_words': 74}