= cockpit.js: Errorscockpit.js: ErrorsProblem codes and messages[[cockpit-problems]]== Problem CodesCockpit represents problems with standardized problem string codes.`+"access-denied"+`::The user is not permitted to perform the action in question.`+"authentication-failed"+`::User authentication failed.`+"internal-error"+`::An unexpected internal error without further info. This should nothappen during the normal course of operations.`+"no-cockpit"+`::The system does not have a compatible version of Cockpit installed orinstalled properly.`+"no-session"+`::Cockpit is not logged in.`+"not-found"+`::Something specifically requested was not found, such as a file,executable etc.`+"terminated"+`::Something was terminated forcibly, such as a connection, processsession, etc.`+"timeout"+`::Something timed out.`+"unknown-hostkey"+`::The remote host had an unexpected or unknown key.`+"no-forwarding"+`::Could not forward authentication credentials to the remote host.[[cockpit-messages]]== cockpit.message()....message = cockpit.message(problem)message = cockpit.message(exception)....Return a message for the `+exception+` or `+problem+` code passed as anargument. If the argument is an object with a `+"message"+` property, asis the case with most exceptions, that will be returned directly. If theargument is an object with a `+"problem"+` property, then it will beused as the problem code. An appropriate message will be returned forproblem codes.