Skip to content

401 Unauthorized message shows up in the Back End if the filing cant be performed as a result of allowable actions. #25112

Closed

Description

@riyazuddinsyed

Describe the bug in the current situation
When API Users perform a filing with a valid authorization and if the filling cant be performed as a result of the allowable actions then the API throws a 401 error confusing the users

Steps to reproduce the behavior:
https://legal-api-dev.apps.silver.devops.gov.bc.ca/api/v2/businesses/BC0884207/filings {POOST}
Payload:
{"filing":{"header":{"name":"putBackOff","date":"2025-01-02","certifiedBy":""},"business":{"identifier":"BC0884207","legalType":"BC","legalName":"0884207 B.C. LTD.","foundingDate":"2024-12-17T21:19:19.704468+00:00"},"putBackOff":{"details":"detail","courtOrder":{"effectOfOrder":"planOfArrangement","fileNumber":"123456789"}}}}

Expected behavior
The response message should return 403? To be confirmed before making any changes

Screenshots/ Visual Reference/ Source
Screen Shot 2025-01-02 at 9.57.32 AM.png

Note: API Spec will also need to be updated

Activity

  1. added
    bug
    Entities Team
    on Jan 2, 2025
  2. severinbeauvais commented on Mar 17, 2025

    @severinbeauvais
    Collaborator

    @thorwolpert Is it OK to make this change now, as it will impact the API spec?

  3. Rajandeep98 commented on Jun 10, 2025

    @Rajandeep98
    Collaborator

    image.png

  4. self-assigned this
    on Jun 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Entities TeamPriority3bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions