found property

int found
final

Indicates how much was found before a result could not be created.

This member is typically used to distinguish between the situation of the resource exists but does not support the HTTP method (when its value is NotFoundException.foundResourceDoesNotSupportMethod when a HTTP 405 Method Not Allow status (HttpStatus.methodNotAllowed) should be produced.

All other values should produce a HTTP 404 Not Found status HttpStatus.notFound. But their different values may indicate exactly why the resource was not found. Specifically,

It is recommended to use resourceExists instead of examining this member directly.

Historical note: this is an integer and not an enum. Because when woomera was first written in Dart 1.x, Dart did not support enums. It was a very long time ago!

Implementation

final int found;