Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interface optimization exception status code. #556

Open
FrederLu opened this issue Mar 1, 2024 · 0 comments
Open

Interface optimization exception status code. #556

FrederLu opened this issue Mar 1, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@FrederLu
Copy link

FrederLu commented Mar 1, 2024

https://pudge.explorer.nervos.org/script/0x5a86c3bf1e8648b6a6f8abe6875720ccf9745ab225b68fa7c195f9d6635dea80/type
image
image

Request URL: https://testnet-api.explorer.nervos.org/api/v2/scripts/general_info?code_hash=0x5a86c3bf1e8648b6a6f8abe6875720ccf9745ab225b68fa7c195f9d6635dea80&hash_type=type

The interface can optimize the handling of 404 exceptions.
To give users a friendly experience, Status code: 404 is not directly fed back to the user, but a status code is internally agreed to be fed back to the front end.

If there is no data in the search, information similar to

{"data":[],"meta":{"total":0,"page_size":20}}

can be returned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🏗 In Progress
Development

No branches or pull requests

3 participants