https://http.cat is an amazing website with 100% accuracy. With a small library and 1 line of code, add the x-cat-status
header to all your requests to let your more advanced users know your API or website means business.
There is a small piece of middleware that sits in your dotnet core web stack. It will add to every response the x-cat-status
header with the https://http.cat image that matches the response. Simple, easy, do it.
dotnet add package HttpCatCode
- Add
using HttpCatCode;
to the top of yourStartup.cs
file - Add
app.UseHttpCat();
to the top of yourpublic void Configure(IApplicationBuilder app, IWebHostEnvironment env)
method - Enjoy.
Add true
as a parameter to UseHttpCat();
and watch the magic happen on all non 200
requests.