Code example for HttpResponseException

Methods: getStatusCode

0
				} catch (IllegalStateException e) {
					throw new NetworkErrorException("404");
				} 
				Log.d(TAG, response);
			} catch (HttpResponseException e) {
				Log.d(TAG, Integer.toString(e.getStatusCode()));
				throw new NetworkErrorException(Integer.toString(e.getStatusCode()));
			} 
			 
		} catch (IOException e) {
			Log.d(TAG, "IO");
			throw new NetworkErrorException("404");
		} 
		Log.d("odpowiedz: ", response);
		return response;
	} 
	 
	 
	private static ArrayList<Task> buildTaskList(String jsonString) throws NetworkErrorException {
		Log.d(TAG, "buildTaskList()");
		ArrayList<Task> tasks = new ArrayList<Task>();