status property

int get status

2xx for every outcome the client should stop sending, 4xx for a report that will never be accepted, 5xx for one worth sending again.

Implementation

int get status => switch (outcome) {
      DVCrashIngestOutcome.stored => 201,
      DVCrashIngestOutcome.duplicate => 200,
      DVCrashIngestOutcome.limited => 202,
      DVCrashIngestOutcome.sourceLimited => 429,
      DVCrashIngestOutcome.invalid => 400,
      DVCrashIngestOutcome.tooLarge => 413,
      DVCrashIngestOutcome.unavailable => 503,
    };