{"componentChunkName":"component---node-modules-rocketseat-gatsby-theme-docs-core-src-templates-docs-query-js","path":"/quick-start/errors/","result":{"data":{"mdx":{"id":"07b42dfe-decf-5818-a5fd-11cb71d1aa6f","excerpt":"Overview Server responses can be confusing, so we want to help by providing a description and, where applicable, a remedy for the most common replies you'll get…","fields":{"slug":"/quick-start/errors/"},"frontmatter":{"title":"Handling Errors","description":null,"image":null,"disableTableOfContents":null},"body":"function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n/* @jsx mdx */\nvar _frontmatter = {\n  \"title\": \"Handling Errors\"\n};\n\nvar makeShortcode = function makeShortcode(name) {\n  return function MDXDefaultShortcode(props) {\n    console.warn(\"Component \" + name + \" was not imported, exported, or provided by MDXProvider as global scope\");\n    return mdx(\"div\", props);\n  };\n};\n\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n      props = _objectWithoutProperties(_ref, [\"components\"]);\n\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"h2\", {\n    \"id\": \"overview\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", _extends({\n    parentName: \"h2\"\n  }, {\n    \"href\": \"#overview\",\n    \"aria-label\": \"overview permalink\",\n    \"className\": \"anchor before\"\n  }), mdx(\"svg\", _extends({\n    parentName: \"a\"\n  }, {\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }), mdx(\"path\", _extends({\n    parentName: \"svg\"\n  }, {\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  })))), \"Overview\"), mdx(\"p\", null, \"Server responses can be confusing, so we want to help by providing a description and, where applicable, a remedy for the most common replies you'll get back from API.Bible.\"), mdx(\"hr\", null), mdx(\"h2\", {\n    \"id\": \"common-responses\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", _extends({\n    parentName: \"h2\"\n  }, {\n    \"href\": \"#common-responses\",\n    \"aria-label\": \"common responses permalink\",\n    \"className\": \"anchor before\"\n  }), mdx(\"svg\", _extends({\n    parentName: \"a\"\n  }, {\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }), mdx(\"path\", _extends({\n    parentName: \"svg\"\n  }, {\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  })))), \"Common Responses\"), mdx(\"p\", null, \"These codes follow \", mdx(\"a\", _extends({\n    parentName: \"p\"\n  }, {\n    \"href\": \"https://www.ietf.org/rfc/rfc2616.txt\"\n  }), \"RFC 2616\"), \" and \", mdx(\"a\", _extends({\n    parentName: \"p\"\n  }, {\n    \"href\": \"https://www.ietf.org/rfc/rfc6585.txt\"\n  }), \"RFC 6585\"), \".\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"202:\"), \" Your request was successful. No action needed on your part.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"400:\"), \" The request was formatted incorrectly. Look at your request parameters and ensure they match the specifications of the API.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"401:\"), \" We couldn't authenticate you. Ensure you are passing your API key \", mdx(\"a\", _extends({\n    parentName: \"li\"\n  }, {\n    \"href\": \"/quick-start/authentication\"\n  }), \"(more on that here)\"), \" and that it is valid and typed correctly.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"403:\"), \" You are requesting a Bible that you don't have access to. Double check via the \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"/bibles\"), \" endpoint that the \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"bible_id\"), \" you are using is a part of your plan. If it is, \", mdx(\"a\", _extends({\n    parentName: \"li\"\n  }, {\n    \"href\": \"mailto:support@api.bible\"\n  }), \"contact support@api.bible\"), \". If it is not, consider adding it to your plan.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"404:\"), \" The endpoint (or \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"bible_id\"), \" if applicable) you are accessing doesn't exist. If after double-checking your endpoint and \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"bible_id\"), \" this error persists, contact \", mdx(\"a\", _extends({\n    parentName: \"li\"\n  }, {\n    \"href\": \"mailto:support@api.bible\"\n  }), \"support@api.bible\"), \".\")), mdx(\"p\", null, mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"Note:\"), \" Error descriptions may vary per-endpoint. More information on individual error codes can be found by searching for your endpoint in our \", mdx(\"a\", _extends({\n    parentName: \"p\"\n  }, {\n    \"href\": \"https://api.bible/api-reference\"\n  }), \"API Reference\"), \".\"));\n}\n;\nMDXContent.isMDXComponent = true;","headings":[{"depth":2,"value":"Overview"},{"depth":2,"value":"Common Responses"}]}},"pageContext":{"slug":"/quick-start/errors/","prev":{"label":"Licensing & Access","link":"/quick-start/licensing-and-access"},"next":{"label":"Rate Limiting","link":"/quick-start/rate-limiting"},"githubEditUrl":"https:/github.com/americanbible/api-bible-docs/tree/master/src/@rocketset/gatsby-theme-docs/src/docs/quick-start/errors.mdx"}}}