dcsimg
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: .NET
Expertise: Advanced
Feb 28, 2019

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


Return Standard Inbuilt Response Codes from a ASP.NET Core Controller

ASP.NET core has inbuilt methods to return few standard response codes. Here is an example.

[HttpGet] 
public IActionResult CustomStatusCode() 
{ 
 //code
 return BadRequest; //sends status code 400 
}
Srinath M S
 
Thanks for your registration, follow us on our social networks to keep up-to-date