当前位置: 首页 > news >正文

书画院网站建设模板网站后台界面设计

书画院网站建设模板,网站后台界面设计,产品展示网站模板,最简单的做网站工具今天一个同事的接口突然报409,大概百度了一下,不是很清楚,谷歌也没找到特别好的解释 因为是直接调用的gitlab,就直接看了下gitlab的api The following table shows the possible return codes for API requests. Return valuesDescription200 OKThe GET, PUT or DELETE request…

今天一个同事的接口突然报409,大概百度了一下,不是很清楚,谷歌也没找到特别好的解释

因为是直接调用的gitlab,就直接看了下gitlab的api

The following table shows the possible return codes for API requests.

Return valuesDescription
200 OKThe GET, PUT or DELETE request was successful, and the resource itself is returned as JSON.
202 AcceptedThe GET, PUT or DELETE request was successful, and the resource is scheduled for processing.
204 No ContentThe server has successfully fulfilled the request, and there is no additional content to send in the response payload body.
201 CreatedThe POST request was successful, and the resource is returned as JSON.
304 Not ModifiedThe resource hasn't been modified since the last request.
400 Bad RequestA required attribute of the API request is missing. For example, the title of an issue is not given.
401 UnauthorizedThe user isn't authenticated. A valid user token is necessary.
403 ForbiddenThe request isn't allowed. For example, the user isn't allowed to delete a project.
404 Not FoundA resource couldn't be accessed. For example, an ID for a resource couldn't be found.
405 Method Not AllowedThe request isn't supported.
409 ConflictA conflicting resource already exists. For example, creating a project with a name that already exists.
412The request was denied. This can happen if the If-Unmodified-Since header is provided when trying to delete a resource, which was modified in between.
422 UnprocessableThe entity couldn't be processed.
429 Too Many RequestsThe user exceeded the application rate limits.
500 Server ErrorWhile handling the request, something went wrong on the server.

gitlab解释的很清晰,就是说资源已经存在了,再次创建失败

那为什么接口没有将报错message展示出来,查了一下代码是因为直接屏蔽了409状态码,直接用postman访问接口会返回具体错误信息,错误提示信息示例:

示例1:

{

    "message": "Email has already been taken"

}

示例2:

{

    "message": "Username has already been taken"

}

找gitlab负责人查了下数据,确实是用户已经存在了,但是用户状态是blocked(禁用),问题解决

http://www.yayakq.cn/news/694354/

相关文章:

  • 做浏览单的网站有哪些汉沽网站建设制作
  • 外企公司网站开发设计wordpress怎么做seo关键词
  • 电脑可以做网站吗辽宁响应式网站建设价格
  • 做相亲网站织梦dedecms大气微电影网站模板
  • 网站平台建设是什么网站开发属于知识产权吗
  • 上海网站制作是什么西昌seo
  • 珠海建设信息网站蓝色系网站设计
  • 湖州网络公司网站建设网站地图提交给百度
  • 怎么把网站关掉该工具支持 preview 功能
  • 百度竞价做网站建设做商城类网站备案时需提供什么证件
  • 长沙招聘网站制作免费源代码网站
  • 北京的电商平台网站有哪些内容wordpress英文源码
  • 哪里有网站建设中心负责网站建设和网络推广的
  • 成年做羞羞的视频网站space东台网站建设服务商
  • 嘉定网站设计制作公司怎样wordpress安装主题
  • 岗顶做网站公司关于集团网站建设的修改请示
  • 做网站的经验文字域名可以做网站
  • 河北省建设厅管网站梅州在建工程
  • 山东外贸建站外链优化方法
  • 湖南住房和城乡建设网门户网站北京搜狗建网站的电话
  • 国内网站制作特点react.js 做网站好吗
  • 站酷做网站信息流优化师发展前景
  • 辽阳网站建设多少钱小程序代理是什么意思
  • du制作网站企业展厅布展设计
  • 政务公开网站建设的亮点和建议湖州做网站建设的公司
  • 腾讯网静态网站建设成华区微信网站建设
  • 行业门户网站程序wordpress上传媒体文件8m
  • 三网合一网站建设百科项目网络技术
  • 网站开发团队人员构成成都网站建设单位
  • 建设银行网站修改天津网站建设定制公司