diff --git a/oauth2/flaskweb.py b/oauth2/flaskweb.py
index <HASH>..<HASH> 100644
--- a/oauth2/flaskweb.py
+++ b/oauth2/flaskweb.py
@@ -98,6 +98,4 @@ class OAuth2(object):
         
         response = self.controller.dispatch(Request(), environ={})
         
-        status_code_parts = response.status_code.split(" ")
-        
-        return response.body, int(status_code_parts[0]), response._headers
+        return response.body, response.status_code, response._headers
Use status code of a response without splitting