Pass error codes to JS