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

建网站的免费空间站长工具在线平台

建网站的免费空间,站长工具在线平台,网站设计基本要素,宝塔在wordpress安装redis今天一个同事的接口突然报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/707945/

相关文章:

  • 做店铺装修的公司网站平面广告设计论文
  • 单位建设网站需要招标怎么查询网站建设时间
  • 天河网站建设集团深圳在建工程查询
  • 西安做网站朋朋网络个人网站设计模板中文
  • 网站定制一般价格多少个体工商户网上注销
  • 网站建设一般多钱电子商务交易平台
  • 珠海建站软件重庆市工程建设交易中心网站
  • wordpress站点跟换域名外贸营销网站怎么建站
  • 阿里云专有网络做网站美康优选网站怎么做的
  • 合肥公司网站开发长沙网站seo源头厂家
  • 毕业生网站建设方案书商城网站带宽控制
  • 云南中建西部建设有限公司网站企业安全文化实现的途径
  • 广州市专注网站建设公司安庆 网站建设
  • 电子商务网站开发与实现seo公司广州
  • h5制作的炫酷个人网站山西做网站的企业
  • 网站的模版要怎么重新做用户界面设计的基本原则
  • 厦门 网站建设公司电话公司网页设计实例教程
  • 网站建站系统程序重庆网站制作哪家好
  • 网站开发 强制兼容模式wordpress获取父级id
  • 百度投广告怎么收费佛山网站优化质量好
  • 榆林网站建设哪家好手机聊天app开发
  • 网站开发都用什么语言网站建设方案500字
  • 上海在线网站2019网站怎么做
  • 烟台建设集团招聘信息网站wordpress获取tag
  • 百度网站下载安装wordpress ping地址
  • 企业型网站建设怎样收费怎么做wap网站
  • 代销网站源码wordpress说说插件
  • 装饰公司网站php源码网站备案号显示红色
  • 长沙做php的网站建设上海网站设计建设公司
  • 北京光辉网站建设哈尔滨企业网站排名