Return value of $wpdb->update() query in plugin is wrong

Changing the comparison operator to == instead of strict comparison === as suggested by @czerspalace, solved the problem because on execution of my update function no rows were updated, so 0(int) was being returned . False is only returned if there is an error.

404 Not Found

Not Found

The requested URL was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.