Title: Implement json error pages by davispuh · Pull Request #44 · HttpErrorPages/HttpErrorPages · GitHub
Open Graph Title: Implement json error pages by davispuh · Pull Request #44 · HttpErrorPages/HttpErrorPages
X Title: Implement json error pages by davispuh · Pull Request #44 · HttpErrorPages/HttpErrorPages
Description: Implement json error pages. This is useful when JSON backend/API doesn't have nice error info and might return blank page. To use with Nginx: map $http_accept $errorExtension { default html; ~application/json json; ~application/activity+json json; } error_page 400 /ErrorPages/HTTP400.$errorExtension; error_page 401 /ErrorPages/HTTP401.$errorExtension; error_page 403 /ErrorPages/HTTP403.$errorExtension; # ... This will cause that when client has Accept: application/json header then it will get JSON response.
Open Graph Description: Implement json error pages. This is useful when JSON backend/API doesn't have nice error info and might return blank page. To use with Nginx: map $http_accept $errorExtension { default ...
X Description: Implement json error pages. This is useful when JSON backend/API doesn't have nice error info and might return blank page. To use with Nginx: map $http_accept $errorExtension { default ...
Opengraph URL: https://github.com/HttpErrorPages/HttpErrorPages/pull/44
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:a0d05558-43fd-8818-fa13-5b709baaf334 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9280:EDDC8:12BD71B:12F95C0:697A8D2C |
| html-safe-nonce | 681b01781e1115184eae8450dc1f44970208db7b9bbf990ff3f42bff5b804d3f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjgwOkVEREM4OjEyQkQ3MUI6MTJGOTVDMDo2OTdBOEQyQyIsInZpc2l0b3JfaWQiOiIxOTU5OTU1MjMyOTEzNTI2MDYwIiwicmVnaW9uX2VkZ2UiOiJzZWEiLCJyZWdpb25fcmVuZGVyIjoic2VhIn0= |
| visitor-hmac | 14788b58df0b92781c0b1f730ba7acbd6db37c7908d149188f70e4944c43344b |
| hovercard-subject-tag | pull_request:2012902577 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/HttpErrorPages/HttpErrorPages/pull/44/files |
| twitter:image | https://avatars.githubusercontent.com/u/651800?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/651800?s=400&v=4 |
| og:image:alt | Implement json error pages. This is useful when JSON backend/API doesn't have nice error info and might return blank page. To use with Nginx: map $http_accept $errorExtension { default ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8bc3ff3881e539acc2eac7cfa104664bc0f8d972a0dfc38dd3cbffce0d16af91 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/HttpErrorPages/HttpErrorPages git https://github.com/HttpErrorPages/HttpErrorPages.git |
| octolytics-dimension-user_id | 47022990 |
| octolytics-dimension-user_login | HttpErrorPages |
| octolytics-dimension-repository_id | 29097688 |
| octolytics-dimension-repository_nwo | HttpErrorPages/HttpErrorPages |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 29097688 |
| octolytics-dimension-repository_network_root_nwo | HttpErrorPages/HttpErrorPages |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d1026e9b6076007917cf27102f0d94ead41f7c24 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width