Title: Allow throwing custom errors which map to different HTTP error codes · Issue #4 · mcwebb/lambda-kernel · GitHub
Open Graph Title: Allow throwing custom errors which map to different HTTP error codes · Issue #4 · mcwebb/lambda-kernel
X Title: Allow throwing custom errors which map to different HTTP error codes · Issue #4 · mcwebb/lambda-kernel
Description: Occasionally, in a promise chain for example, one may want to throw an error which doesn't cause a 500 response, because sometimes there are runtime errors which deserver a 400 response because it's the users fault. Potentially there sho...
Open Graph Description: Occasionally, in a promise chain for example, one may want to throw an error which doesn't cause a 500 response, because sometimes there are runtime errors which deserver a 400 response because it'...
X Description: Occasionally, in a promise chain for example, one may want to throw an error which doesn't cause a 500 response, because sometimes there are runtime errors which deserver a 400 response because...
Opengraph URL: https://github.com/mcwebb/lambda-kernel/issues/4
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Allow throwing custom errors which map to different HTTP error codes","articleBody":"Occasionally, in a promise chain for example, one may want to throw an error which doesn't cause a 500 response, because sometimes there are runtime errors which deserver a 400 response because it's the users fault.\r\n\r\nPotentially there should be some custom errors which can be picked up by the dispatcher so that the application can easily tailor what error response is given to the client.","author":{"url":"https://github.com/mcwebb","@type":"Person","name":"mcwebb"},"datePublished":"2017-02-13T19:49:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/4/lambda-kernel/issues/4"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b3784dde-4124-af80-12e2-966b6a0cd999 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8C92:F8EC2:96555D:D20BAA:6A61BD16 |
| html-safe-nonce | 93fe0facd5f0690c813900eb975c5be6cdcc677fe35c467e567da63d585aedff |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzkyOkY4RUMyOjk2NTU1RDpEMjBCQUE6NkE2MUJEMTYiLCJ2aXNpdG9yX2lkIjoiMzY5ODgyMTE2NDE3NTU3MjI0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ea6259c003756e1f26a1720223231dc313cfa079ec5c0c82c6feb98c12789251 |
| hovercard-subject-tag | issue:207320716 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/mcwebb/lambda-kernel/4/issue_layout |
| twitter:image | https://opengraph.githubassets.com/208b0f3444132c2de4b167bae5483125566304f4237337315580f2783867eb93/mcwebb/lambda-kernel/issues/4 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/208b0f3444132c2de4b167bae5483125566304f4237337315580f2783867eb93/mcwebb/lambda-kernel/issues/4 |
| og:image:alt | Occasionally, in a promise chain for example, one may want to throw an error which doesn't cause a 500 response, because sometimes there are runtime errors which deserver a 400 response because it'... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mcwebb |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6f4633bcf01c1ad14b73fd07dd39ac31d61f3d3c2578ee08ec1792b7b351eeb9 |
| turbo-cache-control | no-preview |
| go-import | github.com/mcwebb/lambda-kernel git https://github.com/mcwebb/lambda-kernel.git |
| octolytics-dimension-user_id | 610528 |
| octolytics-dimension-user_login | mcwebb |
| octolytics-dimension-repository_id | 70738368 |
| octolytics-dimension-repository_nwo | mcwebb/lambda-kernel |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 70738368 |
| octolytics-dimension-repository_network_root_nwo | mcwebb/lambda-kernel |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ac296ae7f21856f1f92adbad22f870b6fbb4b907 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width