Skip to content

What error to return when SIM Swap info is technically not available for a particular phone number #166

@HuubAppelboom

Description

@HuubAppelboom

We have some very rare cases (less than 1 in 10000) where we don't have a SIM Activation time stamp in our platform.
The mobile phone number is however valid, and belongs to KPN.

Currently we are returning a null value in stead of a time stamp in the reply body.

It may be better however to return an error code instead
(also to avoid confusion also when there is a limitation becuase of privacy reasons).

What is the error code to return in this case?

Should we use a 422 error with code NOT_SUPPORTED and message Service not supported for this phoneNumber ?

Or would it be better to provide a 204 error code (No Content) ??

Please advice what is best.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions