Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Http response status code constants

Tags:

dart

I'm building a client side app (in the browser) and I can't find if there exists a list of Http response status codes somewhere.

All the libraries seem to use numbers like 404, 200, etc.. but I find it not too readable.

Is there a standardized place where I could use something like NOT_FOUND for 404 and other constants for other codes?

I've seen Shelf.response that provides factory methods for this, but it's also only usable on the Dart vm if I'm not mistaken.

like image 890
Pacane Avatar asked May 11 '26 10:05

Pacane


1 Answers

It is only available in dart:io but not in dart:html.

like image 170
Günter Zöchbauer Avatar answered May 14 '26 10:05

Günter Zöchbauer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!