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

feat: add basic error messages if the analyzed page send back a 401 or 403 HTTP status code #322

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bgatellier
Copy link
Contributor

Closes #301

@bgatellier bgatellier added the enhancement New feature or request label Feb 4, 2024
@bgatellier bgatellier self-assigned this Feb 4, 2024
@bgatellier bgatellier changed the title feat: add basic error messages if the analyzed page send back a 401 o… feat: add basic error messages if the analyzed page send back a 401 or 403 HTTP status code Feb 4, 2024
Comment on lines +12 to +21
401: `{{- i18n "Error401" | markdownify -}}`,
403: `{{- i18n "Error403" | markdownify -}}`,
404: `{{- i18n "Error404" | markdownify -}}`,
422: `{{- i18n "Error422" | markdownify -}}`,
429: `{{- i18n "Error429" | markdownify -}}`,
500: `{{- i18n "Error500" | markdownify -}}`,
502: `{{- i18n "Error502" | markdownify -}}`,
504: `{{- i18n "Error504" | markdownify -}}`,
520: `{{- i18n "Error520" | markdownify -}}`,
521: `{{- i18n "Error521" | markdownify -}}`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, the API will not respond with a 401 or 403 status...
The tricky thing is that it will respond with a 521 code and this 521 code refers to the error code of the analyzed page 🤔
So the thing that would be perfect if to read the "referent" status code when a 521 occurs...

@bgatellier bgatellier marked this pull request as draft April 2, 2024 20:33
@bgatellier bgatellier force-pushed the feat/401-403-errors branch 2 times, most recently from 800bd00 to 8336b61 Compare April 13, 2024 23:37
Copy link

Cette pull request a été marquée comme inactive car elle n'a pas eu de mise à jour depuis 30 jours. Si elle n'est pas mise à jour d'ici 7 jours, elle sera fermée automatiquement. Pour éviter qu'elle soit fermée, vous pouvez ajouter le label keep open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request keep open
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Améliorer affichage sur erreur 521 quand 401 ou 403
2 participants