 				errorMessage = "Invalid color ID provided"
 			case .parameterMissingColorID:
 				errorMessage = "Missing color ID parameter"
-			default: break
+			case .invalidRequestType:
+				errorMessage = "Invalid requestType provided"
 			}
 			var structure = [[String: NodeRepresentable]]()
 			structure.append(["responseType": "error",

			//And finally send this update out to other clients
			canvas.updateTileToClients(tile: canvas.tiles[Xcoord + Ycoord * canvas.width])
		}
		
		/*
		case invalidUserID
		case noUserID
		case userIPBanned
		case parameterMissingX
		case parameterMissingY
		case invalidCoordinates
		case invalidColorID
		case parameterMissingColorID
		case none
		*/
		
		//Error handling
		func sendError(error: BackendError, socket: WebSocket) {

			
			//Received JSON request from client
			webSocket.onText = { ws, text in
				print("Received request: " + text)
				//TODO: Session tokens if we have time for that
				let json = try JSON(bytes: Array(text.utf8))
				if let reqType = json.object?["requestType"]?.string {
