导图社区 grafana--http状态码
关于grafana官方的http状态码,如401:unauthorisedError(未授权错误)、500:internalServerError(内部服务器错误) 、404:notFoundError、403:forbiddenError。
编辑于2023-07-18 13:49:28grafana状态码
401
500
404
403
forbiddenError
Access denied to datasource
Access denied to this dashboard and alert
Cannot remove own admin permission for a folder
Cannot delete read-only data source
Access denied to datasource
Cannot remove own admin permission for a folder
Folder could not be deleted because it contains library elements in use
Not allowed to create team
Not allowed to list team members
Not allowed to add team member
Not allowed to update team member
Not allowed to remove team member
Not allowed to update team
Not allowed to delete team
Not allowed to update team preferences
Not allowed to view team preferences
Data proxy hostname and ip are not included in whitelist
other
expect http status 403 when missing permission
should set return http 403 when missing permissions
notFoundError
Dashboard snapshot not found
Snapshot not found
Folder not found
Dashboard version not found
Data source not found
Invite not found
Playlist not found
Plugin not installed
Dashboard not found
Quotas not enabled
Invalid quota target
Invalid email verification code
Email verification code does not match email
Team member not found
Failed to delete Team. ID not found
User not found
User auth token not found
file does not exist
internalServerError(内部服务器错误)
Error while cleaning library panels
Error while connecting library panels
failed to create user(无法创建用户)
Failed to reload plugins config
Could not read user from database
Could not encode password
Failed to update user password
Failed to encode password
Failed to change user password
Failed to delete user
Failed to disable user
Could not enable external user
Could not disable external user
Failed update org user
Failed to get admin stats from database
Failed to fetch alert states
Failed to test rule
Failed to get alert notifications
Failed to create alert notification
Failed to update alert notification
Failed to delete alert notification
Failed to send alert notifications
List alerts failed
Get Alert failed
Failed to pause alerts
Search failed
Playlist not found
Could not load playlist items
Failed to get plugin settings
Failed to call resource
Failed to get list of plugins
Failed to update plugin setting
Could not get markdown file
Failed to get the relative path
Failed to get plugin absolute path
Could not open plugin file
Plugin file exists but could not open
Failed to get plugin settings
Failed to unmarshal detailed response from backend plugin
Plugin request failed
Failed to set home dashboard
Failed to get preferences
Failed to save preferences
Failed to get org quotas
Failed to update org quotas
Failed to get org quotas
Failed to update org quotas
Rendering failed
Failed to generate random string
Failed to create signup
Failed to publish event
Failed to query database for invites
failed to login user
Failed to read temp user
Failed to get user stars
Failed to fetch users
Failed to logout user
Failed to check if user is a team admin
Failed to add Member to Team
Failed to update team member
Failed to check if user is a folder admin
Failed to render plugin headers
failed to marshal context to json
Could not parse url
Could not interpolate plugin route url
Failed to decrypt plugin settings
Failed to fetch plugin settings
Failed to save Graphite annotation
Failed to get annotations
Failed to save annotation
Failed to update annotation
Failed to delete annotations
Failed to find annotation(找不到批注)
Failed to find annotation tags
Failed to add API Key
Failed to list api keys
Generating API key failed
Failed to update user permissions
Failed to get dashboard permissions
Error while checking permissions for Alert
Failed to update permissions
Error while retrieving hidden permissions
Failed to create permission
Error while checking dashboard permissions
Failed to get folder permissions
Error while retrieving hidden permissions
Error while checking folder permissions
Error while retrieving public dashboards
Error while loading dashboard, dashboard data is invalid
Failed to delete external dashboard
Failed to delete dashboard snapshot
Failed to delete dashboard
Failed to star dashboard
Failed to unstar dashboard
Error while loading dashboard, dashboard data is invalid
Error while retrieving public dashboards
Error while checking if dashboard was starred by user
Error while checking if dashboard is provisioned
Error while loading library panels
Dashboard folder could not be read
Error while checking if dashboard is provisioned using ID
Error while checking if dashboard is provisioned
Dashboard version ?? not found for dashboardId
Could not load dashboards
Error while checking folder ID
failed to get quota
Failed to get preferences
Failed to load home dashboard
Unable to compute diff
Failed to get settings
Failed to get user
Error while trying to authenticate user
Failed to get invites from db
Failed to query db for existing user check
Could not generate random string
Failed to send email invite
Failed to update invite with email sent info
Error while trying to create org user
Failed to send email invited_to_org
Failed to get invite
failed to create user
failed to publish event
failed to accept invite
Failed to update invite status
Error while trying to create org user
Failed to set org as active
Could not add user to organization
Failed to get users for current organization
Failed to get user organizations
Failed to change active organization
Failed to remove user from organization
Failed to send email
Unknown error validating email code
Failed to delete playlist
Failed to create playlist
Failed to save playlist
Failed to get tags from database
Failed to save invite to database
Failed to query datasources
Failed to delete datasource
Failed to add datasource
Failed to update datasource
Unable to load datasource meta data
Unable to find datasource plugin
unauthorisedError(未授权错误)
Invalid username or password(用户名或密码无效)
Unauthorized(账户登录未经授权)
Not allowed to reset password when LDAP or Auth Proxy is enabled(启用LDAP或身份验证代理时不允许重置密码)
Not allowed to reset password when login form is disabled(禁用登录表单时不允许重置密码)
User signup is disabled(用户注册被禁用)
User with same email address already exists(具有相同电子邮件地址的用户已存在)
Not a valid organization(不是有效的组织)
Invalid old password(无效的旧密码)
Invalid Basic Auth Header
other--
should return 401 if user cannot query a data source(如果用户无法查询数据源,则应返回401)
return 401 if user is not authorized to access any group in the folder(如果用户未被授权访问文件夹中的任何组,则返回401)
return 401 if user is not authorized to access the group(如果用户未被授权访问该组,则返回401)
and return 401 if user does not have access one of rules(如果用户不能访问其中一个规则,则返回401)
un-authenticated GET should 401(未通过身份验证的GET应为401)