Error validator should allow any integer

Created on 2 June 2022, over 2 years ago
Updated 14 September 2024, 4 months ago

Problem/Motivation

Nit: The error validity check only goes from -32099 to -32000, but the spec goes from -32768 for pre-defined errors only:

The error codes from and including -32768 to -32000 are reserved for pre-defined errors. Any code within this range, but not defined explicitly below is reserved for future use.

The only "implementation-specific" range in the reserved range is for server errors.

-32000 to -32099 Server error Reserved for implementation-defined server-errors.

That said, the only spec for the code value overall is

A Number that indicates the error type that occurred.
This MUST be an integer.

And furthermore,

The remainder of the space is available for application defined errors.

Steps to reproduce

Proposed resolution

Allow any integer in the implementation-specific range or outside the reserved range.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bradjones1 Digital Nomad Life

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024