RestService.cpp
/**
 * Not found handle will return the call to client if invalid.
 */
Not found handle will return the call to client if invalid.
Not found handle will return the call to client if invalid .
static void _handle_not_found(void){
  String message = "404: Not Found\n\n";
	message += "URI: ";
	message += server.uri();
	message += "\nMethod: ";
	message += (server.method() == HTTP_GET) ? "GET" : "POST";
	message += "\nArguments: ";
	message += server.args();
	message += "\n";
	for (uint8_t i=0; i<server.args(); i++) {
		message += " " + server.argName(i) + ": " + server.arg(i) + "\n";
	}
	server.send (404,"text/plain",message);
}
static void _handle_not_found ( void ) { String message = " \n \n " ; message += " " ; message += server . uri ( ) ; message += " \n " ; message += ( server . method ( ) == HTTP_GET ) ? " " : " " ; message += " \n " ; message += server . args ( ) ; message += " \n " ; for ( uint8_t i = 0 ; i < server . args ( ) ; i ++ ) { message += " " + server . argName ( i ) + " " + server . arg ( i ) + " \n " ; } server . send ( 404 , " " , message ) ; }
Not found handle will return the call to client if invalid.
Not found handle will return the call to client if invalid .