Reader small image

You're reading from  Entity Framework Tutorial (Update) - Second Edition

Product typeBook
Published inAug 2015
Reading LevelIntermediate
Publisher
ISBN-139781783550012
Edition2nd Edition
Languages
Right arrow
Author (1)
Joydip Kanjilal
Joydip Kanjilal
author image
Joydip Kanjilal

Joydip Kanjilal is a Microsoft Most Valuable Professional in ASP.NET, as well as a speaker and the author of several books and articles. He received the prestigious MVP (Most Valuable Professional) award at ASP.Net for 2007, 2008, 2009, 2010, 2011, and 2012. He is currently working as a Chief Software Architect at a reputed software company in Hyderabad. Joydip has almost 20 years of industry experience in IT, with more than 14 years in Microsoft .NET and its related technologies. He has been selected as MSDN Featured Developer of the Fortnight (MSDN) and as Community Credit Winner several times. He is the author of several books and more than 250 articles. Many of his articles have been featured at Microsoft's Official Site on ASP.NET. Joydip has authored the following books:- ASP.NET Web API (Packt Publishing) Visual Studio Six in One (Wrox Publishers) ASP.NET 4.0 Programming (Mc-Graw Hill Publishing) Entity Framework Tutorial (Packt Publishing) Pro Sync Framework (APRESS) Sams Teach Yourself ASP.NET Ajax in 24 Hours (Sams Publishing) ASP.NET Data Presentation Controls Essentials (Packt Publishing) Joydip has also reviewed more than a dozen books till date. He was a speaker a speaker at the reputed Spark IT 2010 event and at the reputed Dr. Dobb's Conference 2014 in Bangalore. He's also worked as a judge for the Jolt Awards at Dr. Dobb's Journal. He blogs these days at: http://www.infoworld.com/blog/microsoft-coder
Read more about Joydip Kanjilal

Right arrow

HTTP methods, request, and response codes


The following table shows the common HTTP methods and their purposes:

Method name

Purpose

DELETE

This is used to delete a resource

GET

This is used to request a specific representation of a resource

HEAD

This is same as GET, but it retrieves only the headers and not the body

OPTIONS

This is used to retrieve the methods supported by the resource

POST

This is used to post or submit data to be processed by the resource

PUT

This is used to create or update data using a particular representation of a resource

The following table shows the HTTP status codes and their purposes:

Status code

Description

100

Informational

200

Successful

201

Created

202

Accepted

300

Redirection

304

Not modified

400

Client error

402

Payment required

404

Not found

405

Method not allowed

500

Server error

501

Not implemented

The following table shows the HTTP redirection status codes:

Status code

Description

300

Multiple choices

301

Moved permanently

302

Found (temporary redirection)

The following table shows the HTTP error status codes:

Status code

Description

400

Bad request

401

Unauthorized

403

Forbidden

404

Resource not found

405

Method not allowed

408

Request timeout

409

Conflict

413

Request entity too large

415

Unsupported media type

The following table shows the HTTP server error status codes:

Status code

Description

500

Internal server error

501

Not implemented

503

Service unavailable

505

HTTP version not supported

The following table lists some resource methods and how they can be implemented using the HTTP protocol:

Method name

Description

HTTP operation

createResource

This creates a new resource

PUT

getResourceRepresentation

This is used to retrieve the representation of a particular resource

GET

deleteResource

This deletes a resource

DELETE

modifyResource

This modifies a resource

POST

getMetaInformation

This retrieves metadata of a resource

HEAD

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Entity Framework Tutorial (Update) - Second Edition
Published in: Aug 2015Publisher: ISBN-13: 9781783550012

Author (1)

author image
Joydip Kanjilal

Joydip Kanjilal is a Microsoft Most Valuable Professional in ASP.NET, as well as a speaker and the author of several books and articles. He received the prestigious MVP (Most Valuable Professional) award at ASP.Net for 2007, 2008, 2009, 2010, 2011, and 2012. He is currently working as a Chief Software Architect at a reputed software company in Hyderabad. Joydip has almost 20 years of industry experience in IT, with more than 14 years in Microsoft .NET and its related technologies. He has been selected as MSDN Featured Developer of the Fortnight (MSDN) and as Community Credit Winner several times. He is the author of several books and more than 250 articles. Many of his articles have been featured at Microsoft's Official Site on ASP.NET. Joydip has authored the following books:- ASP.NET Web API (Packt Publishing) Visual Studio Six in One (Wrox Publishers) ASP.NET 4.0 Programming (Mc-Graw Hill Publishing) Entity Framework Tutorial (Packt Publishing) Pro Sync Framework (APRESS) Sams Teach Yourself ASP.NET Ajax in 24 Hours (Sams Publishing) ASP.NET Data Presentation Controls Essentials (Packt Publishing) Joydip has also reviewed more than a dozen books till date. He was a speaker a speaker at the reputed Spark IT 2010 event and at the reputed Dr. Dobb's Conference 2014 in Bangalore. He's also worked as a judge for the Jolt Awards at Dr. Dobb's Journal. He blogs these days at: http://www.infoworld.com/blog/microsoft-coder
Read more about Joydip Kanjilal