{"id":26170,"date":"2023-11-22T09:20:04","date_gmt":"2023-11-22T09:20:04","guid":{"rendered":"https:\/\/luxon.com\/?post_type=luxon_api&#038;p=22344"},"modified":"2024-05-21T14:43:35","modified_gmt":"2024-05-21T14:43:35","slug":"error-handling","status":"publish","type":"luxon_api","link":"https:\/\/luxon.com\/pl\/api\/error-handling\/","title":{"rendered":"Error Handling"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Luxon uses conventional <\/span><b>HTTP <\/b><span style=\"font-weight: 400;\">response codes to indicate the success or failure of an API request.<\/span><\/p>\n<p><b>HTTP RESPONSE CODES<\/b><\/p>\n<table>\n<tbody>\n<tr>\n<td><b>Code<\/b><\/td>\n<td><b>Message<\/b><\/td>\n<\/tr>\n<tr>\n<td><b>200<\/b><span style=\"font-weight: 400;\"> \u2013 OK<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Everything worked as expected<\/span><\/td>\n<\/tr>\n<tr>\n<td><b>400<\/b><span style=\"font-weight: 400;\"> \u2013 Bad Request<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Request may have a missing parameter or be badly configured<\/span><\/td>\n<\/tr>\n<tr>\n<td><b>401 <\/b><span style=\"font-weight: 400;\">\u2013 Unauthorized<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Invalid authentication<\/span><\/td>\n<\/tr>\n<tr>\n<td><b>402<\/b><span style=\"font-weight: 400;\"> \u2013 Request failed<\/span><\/td>\n<td><span style=\"font-weight: 400;\">The request was valid but failed<\/span><\/td>\n<\/tr>\n<tr>\n<td><b>403<\/b><span style=\"font-weight: 400;\"> \u2013 Forbidden<\/span><\/td>\n<td><span style=\"font-weight: 400;\">The API key doesn\u2019t have permission to perform that request<\/span><\/td>\n<\/tr>\n<tr>\n<td><b>404 <\/b><span style=\"font-weight: 400;\">\u2013 Not Found<\/span><\/td>\n<td><span style=\"font-weight: 400;\">The resource does not exist<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-weight: 400;\">All responses should contain a status object which represents the result of the call.<\/span><\/p>\n","protected":false},"author":2,"featured_media":0,"template":"","api_topic":[618],"class_list":["post-26170","luxon_api","type-luxon_api","status-publish","hentry","api_topic-information"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Error Handling - Luxon Pay<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/luxon.com\/pl\/api\/error-handling\/\" \/>\n<meta property=\"og:locale\" content=\"pl_PL\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Error Handling - Luxon Pay\" \/>\n<meta property=\"og:description\" content=\"Luxon uses conventional HTTP response codes to indicate the success or failure of an API request. HTTP RESPONSE CODES Code Message 200 \u2013 OK Everything worked as expected 400 \u2013 Bad Request Request may have a missing parameter or be badly configured 401 \u2013 Unauthorized Invalid authentication 402 \u2013 Request failed The request was valid... Read more &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/luxon.com\/pl\/api\/error-handling\/\" \/>\n<meta property=\"og:site_name\" content=\"Luxon Pay\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-21T14:43:35+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Szacowany czas czytania\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minuta\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/luxon.com\/pl\/api\/error-handling\/\",\"url\":\"https:\/\/luxon.com\/pl\/api\/error-handling\/\",\"name\":\"Error Handling - Luxon Pay\",\"isPartOf\":{\"@id\":\"https:\/\/luxon.com\/pl\/#website\"},\"datePublished\":\"2023-11-22T09:20:04+00:00\",\"dateModified\":\"2024-05-21T14:43:35+00:00\",\"inLanguage\":\"pl-PL\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/luxon.com\/pl\/api\/error-handling\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/luxon.com\/pl\/#website\",\"url\":\"https:\/\/luxon.com\/pl\/\",\"name\":\"Luxon Pay\",\"description\":\"Instant secure global payments\",\"publisher\":{\"@id\":\"https:\/\/luxon.com\/pl\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/luxon.com\/pl\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pl-PL\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/luxon.com\/pl\/#organization\",\"name\":\"Luxon Pay\",\"url\":\"https:\/\/luxon.com\/pl\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pl-PL\",\"@id\":\"https:\/\/luxon.com\/pl\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/luxon.com\/wp-content\/uploads\/WebsiteImage04.png\",\"contentUrl\":\"https:\/\/luxon.com\/wp-content\/uploads\/WebsiteImage04.png\",\"width\":1200,\"height\":630,\"caption\":\"Luxon Pay\"},\"image\":{\"@id\":\"https:\/\/luxon.com\/pl\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Error Handling - Luxon Pay","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/luxon.com\/pl\/api\/error-handling\/","og_locale":"pl_PL","og_type":"article","og_title":"Error Handling - Luxon Pay","og_description":"Luxon uses conventional HTTP response codes to indicate the success or failure of an API request. HTTP RESPONSE CODES Code Message 200 \u2013 OK Everything worked as expected 400 \u2013 Bad Request Request may have a missing parameter or be badly configured 401 \u2013 Unauthorized Invalid authentication 402 \u2013 Request failed The request was valid... Read more &raquo;","og_url":"https:\/\/luxon.com\/pl\/api\/error-handling\/","og_site_name":"Luxon Pay","article_modified_time":"2024-05-21T14:43:35+00:00","twitter_card":"summary_large_image","twitter_misc":{"Szacowany czas czytania":"1 minuta"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/luxon.com\/pl\/api\/error-handling\/","url":"https:\/\/luxon.com\/pl\/api\/error-handling\/","name":"Error Handling - Luxon Pay","isPartOf":{"@id":"https:\/\/luxon.com\/pl\/#website"},"datePublished":"2023-11-22T09:20:04+00:00","dateModified":"2024-05-21T14:43:35+00:00","inLanguage":"pl-PL","potentialAction":[{"@type":"ReadAction","target":["https:\/\/luxon.com\/pl\/api\/error-handling\/"]}]},{"@type":"WebSite","@id":"https:\/\/luxon.com\/pl\/#website","url":"https:\/\/luxon.com\/pl\/","name":"Luxon Pay","description":"Instant secure global payments","publisher":{"@id":"https:\/\/luxon.com\/pl\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/luxon.com\/pl\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pl-PL"},{"@type":"Organization","@id":"https:\/\/luxon.com\/pl\/#organization","name":"Luxon Pay","url":"https:\/\/luxon.com\/pl\/","logo":{"@type":"ImageObject","inLanguage":"pl-PL","@id":"https:\/\/luxon.com\/pl\/#\/schema\/logo\/image\/","url":"https:\/\/luxon.com\/wp-content\/uploads\/WebsiteImage04.png","contentUrl":"https:\/\/luxon.com\/wp-content\/uploads\/WebsiteImage04.png","width":1200,"height":630,"caption":"Luxon Pay"},"image":{"@id":"https:\/\/luxon.com\/pl\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/luxon.com\/pl\/wp-json\/wp\/v2\/luxon_api\/26170","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/luxon.com\/pl\/wp-json\/wp\/v2\/luxon_api"}],"about":[{"href":"https:\/\/luxon.com\/pl\/wp-json\/wp\/v2\/types\/luxon_api"}],"author":[{"embeddable":true,"href":"https:\/\/luxon.com\/pl\/wp-json\/wp\/v2\/users\/2"}],"wp:attachment":[{"href":"https:\/\/luxon.com\/pl\/wp-json\/wp\/v2\/media?parent=26170"}],"wp:term":[{"taxonomy":"api_topic","embeddable":true,"href":"https:\/\/luxon.com\/pl\/wp-json\/wp\/v2\/api_topic?post=26170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}