httpx

Collection of libs: http exceptions, dsn-parser...

MIT License

Downloads
67.2K
Stars
16
Committers
5

Bot releases are visible (Hide)

httpx - @httpx/[email protected]

Published by belgattitude over 1 year ago

Patch Changes

httpx - @httpx/[email protected]

Published by belgattitude over 1 year ago

Minor Changes

httpx - @httpx/[email protected]

Published by belgattitude over 1 year ago

Minor Changes

httpx - @httpx/[email protected]

Published by belgattitude over 1 year ago

Patch Changes

httpx - @httpx/[email protected]

Published by belgattitude over 1 year ago

Patch Changes

httpx - @httpx/[email protected]

Published by belgattitude over 1 year ago

Minor Changes

  • #402 6b945d3 Thanks @belgattitude! - Add field error validation support for 422 HttpUnprocessableEntity

    Example:

    import { HttpUnprocessableEntity } from '@httpx/exception';
    
    const e422 = new HttpUnprocessableEntity({
      errors: [
        {
          message: 'Invalid email',
          path: 'email',
          code: 'invalid_email',
        },
        {
          message: 'Invalid address',
          path: ['addresses', 0, 'line1'],
          code: 'empty_string',
        },
      ],
    });
    
    console.log(e422.errors);
    

Patch Changes

httpx - @httpx/[email protected]

Published by belgattitude over 1 year ago

Patch Changes

httpx - @httpx/[email protected]

Published by belgattitude over 1 year ago

Patch Changes

httpx - @httpx/[email protected]

Published by belgattitude almost 2 years ago

Minor Changes

  • #31 167c216 Thanks @belgattitude! - Support ValidationError in HttpBadRequest

    In some circumstances you might find useful to append the validation errors to
    HttpBadRequest. Here's a quick example:

    const e400 = new HttpBadRequest({
      errors: [
        {
          message: 'Invalid email',
          path: 'email',
          code: 'invalid_email',
        },
        {
          message: 'Invalid address',
          path: ['addresses', 0, 'line1'],
          code: 'empty_string',
        },
      ],
    });
    console.log(e400.errors);
    
httpx - @httpx/[email protected]

Published by belgattitude almost 2 years ago

Patch Changes

httpx - @httpx/[email protected]

Published by belgattitude almost 2 years ago

Patch Changes

httpx - @httpx/[email protected]

Published by belgattitude almost 2 years ago

Minor Changes

httpx - @httpx/[email protected]

Published by belgattitude almost 2 years ago

Minor Changes

  • #5 b51c863 Thanks @belgattitude! - Rename package to @httpx/exception

    The @belgattitude/http-exception package have been renamed to @httpx/exception.