{"id":6814,"date":"2023-03-22T04:47:21","date_gmt":"2023-03-22T04:47:21","guid":{"rendered":"https:\/\/www.btse.com\/blog\/?p=6814"},"modified":"2023-03-22T04:47:21","modified_gmt":"2023-03-22T04:47:21","slug":"api-update-changes-to-http-error-codes-for-improved-clarity","status":"publish","type":"post","link":"https:\/\/www.btse.com\/blog\/api-update-changes-to-http-error-codes-for-improved-clarity\/","title":{"rendered":"API Update: Changes to HTTP Error Codes for Improved Clarity"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Dear BTSE API users,<\/span><\/p>\n<p><span style=\"font-weight: 400;\">We would like to inform you about an upcoming change to our API error handling that aims to improve your experience and provide better precision when you encounter issues.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Starting March 29, 2023, BTSE will rearrange some of the HTTP error codes, specifically changing certain instances of Error 400 (Bad Request) to Error 401 (Unauthorized). This update will give you a clearer understanding of the issue encountered and enable you to resolve it more effectively.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Here&#8217;s a summary of the changes:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Invalid or expired API key: Previously reported as Error 400, this will now return Error 401.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Insufficient permissions for the API key: Previously reported as Error 400, this will now return Error 401.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Other authentication-related issues: Previously reported as Error 400, these will now return Error 401.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Please note that Error 400 will still be used for non-authentication-related issues, such as malformed requests or invalid input parameters.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">To prepare for this update, we encourage you to review your current error-handling practices and make any necessary adjustments to accommodate the new error code assignments. Our updated <\/span><a href=\"https:\/\/btsecom.github.io\/docs\/futures\/en\/#change-log\"><span style=\"font-weight: 400;\">API documentation<\/span><\/a><span style=\"font-weight: 400;\"> will be available on March 29, 2023, to assist you with these changes.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">We believe these improvements will result in a more precise and efficient troubleshooting process for our valued API users. Should you have any questions or need further assistance, please don&#8217;t hesitate to contact our support team at support@btse.com.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Thanks for your continued support.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Sincerely,<\/span><\/p>\n<p><span style=\"font-weight: 400;\">BTSE Team<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><i><span style=\"font-weight: 400;\">Note: BTSE reserves the right in its sole discretion to amend or change or cancel this announcement at any time and for any reason without prior notice.<\/span><\/i><\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<p><i>Our aim is to create a platform that offers users the most enjoyable trading experience. If you have any feedback, please reach out to us at\u00a0<\/i><a href=\"mailto:feedback@btse.com\"><i>feedback@btse.com<\/i><\/a><i> or on Twitter @BTSE_Official.<\/i><\/p>\n<p class=\"p1\"><i><span style=\"font-weight: 400;\">Note: BTSE Blog contents are intended solely to provide varying insights and perspectives. Unless otherwise noted, they do not represent the views of BTSE and should in no way be treated as investment advice. Markets are volatile, and trading brings rewards and risks. Trade with caution.<\/span><\/i><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dear BTSE API users, We would like to inform you about an upcoming change to our API error handling that aims to improve your experience and provide better precision when you encounter issues. Starting March 29, 2023, BTSE will rearrange some of the HTTP error codes, specifically changing certain instances of Error 400 (Bad Request) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5450,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-6814","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-announcements"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>API Update: Changes to HTTP Error Codes for Improved Clarity &#8212; BTSE Blog<\/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:\/\/www.btse.com\/blog\/api-update-changes-to-http-error-codes-for-improved-clarity\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"API Update: Changes to HTTP Error Codes for Improved Clarity\" \/>\n<meta property=\"og:description\" content=\"Dear BTSE API users, We would like to inform you about an upcoming change to our API error handling that aims to improve your experience and provide better precision when you encounter issues. Starting March 29, 2023, BTSE will rearrange some of the HTTP error codes, specifically changing certain instances of Error 400 (Bad Request) [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.btse.com\/blog\/api-update-changes-to-http-error-codes-for-improved-clarity\/\" \/>\n<meta property=\"og:site_name\" content=\"BTSE Blog\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-22T04:47:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.btse.com\/blog\/wp-content\/uploads\/2023\/03\/Announcement2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"BTSE\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@BTSE_Official\" \/>\n<meta name=\"twitter:site\" content=\"@BTSE_Official\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"BTSE\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"API Update: Changes to HTTP Error Codes for Improved Clarity &#8212; BTSE Blog","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:\/\/www.btse.com\/blog\/api-update-changes-to-http-error-codes-for-improved-clarity\/","og_locale":"en_US","og_type":"article","og_title":"API Update: Changes to HTTP Error Codes for Improved Clarity","og_description":"Dear BTSE API users, We would like to inform you about an upcoming change to our API error handling that aims to improve your experience and provide better precision when you encounter issues. Starting March 29, 2023, BTSE will rearrange some of the HTTP error codes, specifically changing certain instances of Error 400 (Bad Request) [&hellip;]","og_url":"https:\/\/www.btse.com\/blog\/api-update-changes-to-http-error-codes-for-improved-clarity\/","og_site_name":"BTSE Blog","article_published_time":"2023-03-22T04:47:21+00:00","og_image":[{"width":1920,"height":1080,"url":"https:\/\/www.btse.com\/blog\/wp-content\/uploads\/2023\/03\/Announcement2.png","type":"image\/png"}],"author":"BTSE","twitter_card":"summary_large_image","twitter_creator":"@BTSE_Official","twitter_site":"@BTSE_Official","twitter_misc":{"Written by":"BTSE","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.btse.com\/blog\/api-update-changes-to-http-error-codes-for-improved-clarity\/#article","isPartOf":{"@id":"https:\/\/www.btse.com\/blog\/api-update-changes-to-http-error-codes-for-improved-clarity\/"},"author":{"name":"BTSE","@id":"https:\/\/www.btse.com\/blog\/#\/schema\/person\/46ad80e1bffe6cf5d79938127822f2ca"},"headline":"API Update: Changes to HTTP Error Codes for Improved Clarity","datePublished":"2023-03-22T04:47:21+00:00","mainEntityOfPage":{"@id":"https:\/\/www.btse.com\/blog\/api-update-changes-to-http-error-codes-for-improved-clarity\/"},"wordCount":351,"commentCount":0,"publisher":{"@id":"https:\/\/www.btse.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.btse.com\/blog\/api-update-changes-to-http-error-codes-for-improved-clarity\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.btse.com\/blog\/wp-content\/uploads\/2023\/03\/Announcement2.png?fit=1920%2C1080&quality=75&ssl=1","articleSection":["Announcements"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.btse.com\/blog\/api-update-changes-to-http-error-codes-for-improved-clarity\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.btse.com\/blog\/api-update-changes-to-http-error-codes-for-improved-clarity\/","url":"https:\/\/www.btse.com\/blog\/api-update-changes-to-http-error-codes-for-improved-clarity\/","name":"API Update: Changes to HTTP Error Codes for Improved Clarity &#8212; BTSE Blog","isPartOf":{"@id":"https:\/\/www.btse.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.btse.com\/blog\/api-update-changes-to-http-error-codes-for-improved-clarity\/#primaryimage"},"image":{"@id":"https:\/\/www.btse.com\/blog\/api-update-changes-to-http-error-codes-for-improved-clarity\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.btse.com\/blog\/wp-content\/uploads\/2023\/03\/Announcement2.png?fit=1920%2C1080&quality=75&ssl=1","datePublished":"2023-03-22T04:47:21+00:00","breadcrumb":{"@id":"https:\/\/www.btse.com\/blog\/api-update-changes-to-http-error-codes-for-improved-clarity\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.btse.com\/blog\/api-update-changes-to-http-error-codes-for-improved-clarity\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.btse.com\/blog\/api-update-changes-to-http-error-codes-for-improved-clarity\/#primaryimage","url":"https:\/\/i0.wp.com\/www.btse.com\/blog\/wp-content\/uploads\/2023\/03\/Announcement2.png?fit=1920%2C1080&quality=75&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.btse.com\/blog\/wp-content\/uploads\/2023\/03\/Announcement2.png?fit=1920%2C1080&quality=75&ssl=1","width":1920,"height":1080,"caption":"BTSE Announcement"},{"@type":"BreadcrumbList","@id":"https:\/\/www.btse.com\/blog\/api-update-changes-to-http-error-codes-for-improved-clarity\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.btse.com\/blog\/"},{"@type":"ListItem","position":2,"name":"API Update: Changes to HTTP Error Codes for Improved Clarity"}]},{"@type":"WebSite","@id":"https:\/\/www.btse.com\/blog\/#website","url":"https:\/\/www.btse.com\/blog\/","name":"BTSE Blog","description":"Navigating the Crypto Frontier - Insights, Analysis, and Strategies","publisher":{"@id":"https:\/\/www.btse.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.btse.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.btse.com\/blog\/#organization","name":"BTSE","url":"https:\/\/www.btse.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.btse.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.btse.com\/blog\/wp-content\/uploads\/2023\/03\/btse-logo.png","contentUrl":"https:\/\/www.btse.com\/blog\/wp-content\/uploads\/2023\/03\/btse-logo.png","width":1007,"height":306,"caption":"BTSE"},"image":{"@id":"https:\/\/www.btse.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/BTSE_Official","https:\/\/discord.com\/invite\/btse","https:\/\/www.linkedin.com\/company\/btsecom\/","https:\/\/t.me\/btsecom"]},{"@type":"Person","@id":"https:\/\/www.btse.com\/blog\/#\/schema\/person\/46ad80e1bffe6cf5d79938127822f2ca","name":"BTSE","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/dc01110861deb9c4a6b15c6c841e4457320749d7c005164340fbf8d4eacefc5d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/dc01110861deb9c4a6b15c6c841e4457320749d7c005164340fbf8d4eacefc5d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/dc01110861deb9c4a6b15c6c841e4457320749d7c005164340fbf8d4eacefc5d?s=96&d=mm&r=g","caption":"BTSE"},"sameAs":["https:\/\/www.btse.com\/blog"],"url":"https:\/\/www.btse.com\/blog\/author\/btseadmin\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.btse.com\/blog\/wp-content\/uploads\/2023\/03\/Announcement2.png?fit=1920%2C1080&quality=75&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.btse.com\/blog\/wp-json\/wp\/v2\/posts\/6814","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.btse.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.btse.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.btse.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.btse.com\/blog\/wp-json\/wp\/v2\/comments?post=6814"}],"version-history":[{"count":1,"href":"https:\/\/www.btse.com\/blog\/wp-json\/wp\/v2\/posts\/6814\/revisions"}],"predecessor-version":[{"id":6815,"href":"https:\/\/www.btse.com\/blog\/wp-json\/wp\/v2\/posts\/6814\/revisions\/6815"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.btse.com\/blog\/wp-json\/wp\/v2\/media\/5450"}],"wp:attachment":[{"href":"https:\/\/www.btse.com\/blog\/wp-json\/wp\/v2\/media?parent=6814"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.btse.com\/blog\/wp-json\/wp\/v2\/categories?post=6814"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.btse.com\/blog\/wp-json\/wp\/v2\/tags?post=6814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}