Rest API Response Codes

Here are some sample Response Codes which we will normally see while performing REST API testing through any REST API client.

#1) 100 Series
These are temporary informational Responses

  • 100 -Continue
  • 101 -Switching Protocols
  • 102 -Processing

#2) 200 Series
The client accepts the Request, being processed successfully at the server.

  • 200 – OK
  • 201 – Created
  • 202 – Accepted
  • 203 – Non-Authoritative Information
  • 204 – No Content
  • 205 – Reset Content
  • 206 – Partial Content
  • 207 – Multi-Status
  • 208 – Already Reported
  • 226 – IM Used

#3) 300 Series
Most of the codes related to this series are for URL Redirection.

  • 300 – Multiple Choices
  • 301 – Moved Permanently
  • 302 – Found
  • 303 – Check Other
  • 304 – Not Modified
  • 305 – Use Proxy
  • 306 – Switch Proxy
  • 307 – Temporary Redirect
  • 308 – Permanent Redirect

#4) 400 Series
These are specific to client-side error.

  • 400 – Bad Request
  • 401 – Unauthorised
  • 402 – Payment Required
  • 403 – Forbidden
  • 404 – Not Found
  • 405 – Method Not Allowed
  • 406 – Not Acceptable
  • 407 – Proxy Authentication Required
  • 408 – Request Timeout
  • 409 – Conflict
  • 410 – Gone
  • 411 – Length Required
  • 412 – Precondition Failed
  • 413 – Payload Too Large
  • 414 – URI Too Long
  • 415 – Unsupported Media Type
  • 416 – Range Not Satisfiable
  • 417 – Expectation Failed
  • 418 – I’m a teapot
  • 421 – Misdirected Request
  • 422 – Unprocessable Entity
  • 423 – Locked
  • 424 – Failed Dependency
  • 426 – Upgrade Required
  • 428 – Precondition Required
  • 429 – Too Many Requests
  • 431 – Request Header Fields Too Large
  • 451 – Unavailable For Legal Reasons

#5) 500 Series
These are specific to the server-side error.

  • 500 – Internal Server Error
  • 501 – Not Implemented
  • 502 – Bad Gateway
  • 503 – Service Unavailable
  • 504 – Gateway Timeout
  • 505 – HTTP Version Not Supported
  • 506 – Variant Also Negotiates
  • 507 – Insufficient Storage
  • 508 – Loop Detected
  • 510 – Not Extended
  • 511 –  Network Authentication Required

Different Type Of REST Requests

MethodDescription
GETFetch status line, Response body, Header etc.
HEADSame as GET, but only fetch status line and header section
POSTPerform request using request payload mostly in creating a record at the server
PUTUseful in manipulating/updating the resource using Request payload
DELETEDeletes information relating to the target resource.
OPTIONSDescribe the communication options for the target resource
PATCHVery much similar to put but it is more like a minor manipulation of resource content
Share the Knowledge

You May Also Like

About the Author: codenbox

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

Copyright © 2024 CodenBox AutomationLab. All rights reserved.
Theme: VT Blogging by VolThemes. Powered by WordPress.

4617作文网易烊千玺周雨彤起名带水的女孩名字名字加起来13画的字女孩用起名 得分生辰命理周易周易缘国学起名字网算命中的流年是什么意思姓汪起名字啊申时出生的男孩起名梦见别人搬家周公解梦用李字起名起名字算分数曾仕强讲解周易以字起名字周版易筋经十二式物流配送起名大全2020周公解梦大全周末可以交易股票么日本起名大师周公解梦梦到菩萨起名字测试打分算命生辰八字山西周易薛大江带熙起名测算是什么命梦幻单机版手游破解版周公解梦原著全篇怎样算几两命双胞胎男孩起名2019名字测吉凶周易免费周易终身卦淀粉肠小王子日销售额涨超10倍罗斯否认插足凯特王妃婚姻让美丽中国“从细节出发”清明节放假3天调休1天男子给前妻转账 现任妻子起诉要回网友建议重庆地铁不准乘客携带菜筐月嫂回应掌掴婴儿是在赶虫子重庆警方辟谣“男子杀人焚尸”国产伟哥去年销售近13亿新的一天从800个哈欠开始男孩疑遭霸凌 家长讨说法被踢出群高中生被打伤下体休学 邯郸通报男子持台球杆殴打2名女店员被抓19岁小伙救下5人后溺亡 多方发声单亲妈妈陷入热恋 14岁儿子报警两大学生合买彩票中奖一人不认账德国打算提及普京时仅用姓名山西省委原副书记商黎光被逮捕武汉大学樱花即将进入盛花期今日春分张家界的山上“长”满了韩国人?特朗普谈“凯特王妃P图照”王树国3次鞠躬告别西交大师生白宫:哈马斯三号人物被杀代拍被何赛飞拿着魔杖追着打315晚会后胖东来又人满为患了房客欠租失踪 房东直发愁倪萍分享减重40斤方法“重生之我在北大当嫡校长”槽头肉企业被曝光前生意红火手机成瘾是影响睡眠质量重要因素考生莫言也上北大硕士复试名单了妈妈回应孩子在校撞护栏坠楼网友洛杉矶偶遇贾玲呼北高速交通事故已致14人死亡西双版纳热带植物园回应蜉蝣大爆发男孩8年未见母亲被告知被遗忘张立群任西安交通大学校长恒大被罚41.75亿到底怎么缴沈阳一轿车冲入人行道致3死2伤奥运男篮美国塞尔维亚同组周杰伦一审败诉网易国标起草人:淀粉肠是低配版火腿肠外国人感慨凌晨的中国很安全男子被流浪猫绊倒 投喂者赔24万杨倩无缘巴黎奥运男子被猫抓伤后确诊“猫抓病”春分“立蛋”成功率更高?记者:伊万改变了国足氛围奥巴马现身唐宁街 黑色着装引猜测

4617作文网 XML地图 TXT地图 虚拟主机 SEO 网站制作 网站优化